Go to file
garthlei c08e493cee RISC-V: Fix vl_used_by_non_rvv_insn logic of vsetvl pass
This patch fixes a bug in the current vsetvl pass.  The current pass uses
`m_vl` to determine whether the dest operand has been used by non-RVV
instructions.  However, `m_vl` may have been modified as a result of an
`update_avl` call, and thus would be no longer the dest operand of the
original instruction.  This can lead to incorrect vsetvl eliminations, as is
shown in the testcase.  In this patch, we create a `dest_vl` variable for
this scenerio.

gcc/ChangeLog:

	* config/riscv/riscv-vsetvl.cc: Use `dest_vl` for dest VL operand

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/vsetvl/vsetvl_bug-3.c: New test.
2024-09-12 09:14:58 +08:00
.github
c++tools
config
contrib
fixincludes
gcc RISC-V: Fix vl_used_by_non_rvv_insn logic of vsetvl pass 2024-09-12 09:14:58 +08:00
gnattools
gotools
include
INSTALL
libada
libatomic Daily bump. 2024-09-03 00:21:29 +00:00
libbacktrace
libcc1
libcody
libcpp
libdecnumber
libffi
libgcc
libgfortran Daily bump. 2024-09-08 00:17:46 +00:00
libgm2
libgo
libgomp Daily bump. 2024-09-03 00:21:29 +00:00
libgrust
libiberty Daily bump. 2024-09-08 00:17:46 +00:00
libitm Daily bump. 2024-09-03 00:21:29 +00:00
libobjc Daily bump. 2024-09-01 00:25:25 +00:00
libphobos Daily bump. 2024-09-03 00:21:29 +00:00
libquadmath
libsanitizer Daily bump. 2024-09-06 00:19:10 +00:00
libssp
libstdc++-v3 Daily bump. 2024-09-12 00:17:03 +00:00
libvtv Daily bump. 2024-09-03 00:21:29 +00:00
lto-plugin
maintainer-scripts
zlib
.b4-config
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2024-09-05 00:19:06 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure rust: avoid clobbering LIBS 2024-09-04 10:44:28 +02:00
configure.ac rust: avoid clobbering LIBS 2024-09-04 10:44:28 +02:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: Update my email address 2024-09-03 10:51:57 +01:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
SECURITY.txt
symlink-tree
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.