mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
8633bdb346
At the moment, early-ra ducks out of allocating any region that contains a register with both a strong FPR affinity and a strong GPR affinity. The proper allocators are much better at handling that situation. But this means that early-ra tends not to allocate a region of vector code that ends in a reduction to a scalar integer if any later arithmetic is done on the scalar integer result. Currently, if a block acts as an isolated allocation region, the pass will try to split the block into subregions *between* instructions if there are no live FPRs or FPR allocnos. In the reduction case described above, it's convenient to try the same thing *within* instructions. If a block of vector code ends in a reduction, all FPRs and FPR allocnos will be dead between the "use phase" and the "def phase" of the reduction: the vector input will then have died, but the scalar result will not yet have been born. If we split the block that way, the problematic reduction result will be part of the second region, which we can skip allocating, but the vector work will be part of a separate region, which we might be able to allocate. This avoids a MOV in the testcase and also helps a small amount with x264. gcc/ * config/aarch64/aarch64-early-ra.cc (early_ra::IGNORE_REG): New flag. (early_ra::fpr_preference): Handle it. (early_ra::record_constraints): Fail the allocation if an IGNORE_REG output operand is not independent of the inputs. (defines_multi_def_pseudo): New function. (early_ra::could_split_region_here): New member function, split out from... (early_ra::process_block): ...here. Try splitting a block into multiple regions between the definition and use phases of an instruction. Set IGNORE_REG on the output registers if we do so. gcc/testsuite/ * gcc.target/aarch64/early_ra_1.c: New test. |
||
---|---|---|
.forgejo | ||
.github | ||
c++tools | ||
config | ||
contrib | ||
fixincludes | ||
gcc | ||
gnattools | ||
gotools | ||
include | ||
INSTALL | ||
libada | ||
libatomic | ||
libbacktrace | ||
libcc1 | ||
libcody | ||
libcpp | ||
libdecnumber | ||
libffi | ||
libgcc | ||
libgfortran | ||
libgm2 | ||
libgo | ||
libgomp | ||
libgrust | ||
libiberty | ||
libitm | ||
libobjc | ||
libphobos | ||
libquadmath | ||
libsanitizer | ||
libssp | ||
libstdc++-v3 | ||
libvtv | ||
lto-plugin | ||
maintainer-scripts | ||
zlib | ||
.b4-config | ||
.dir-locals.el | ||
.gitattributes | ||
.gitignore | ||
ABOUT-NLS | ||
ar-lib | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
compile | ||
config-ml.in | ||
config.guess | ||
config.rpath | ||
config.sub | ||
configure | ||
configure.ac | ||
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 | ||
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.