Go to file
Richard Sandiford 7d8bdfa7e4 [AArch64] Optimise aarch64_add_offset for SVE VL constants
aarch64_add_offset contains code to decompose all SVE VL-based constants
into native operations.  The worst-case fallback is to load the number
of SVE elements into a register and use a general multiplication.
This patch improves that fallback by reusing expand_mult if
can_create_pseudo_p, rather than emitting a MULT pattern directly.

In order to increase the chances of being able to use a simple
add-and-shift, the patch also tries to compute VG * the lowest set
bit of the multiplier, rather than always using CNTD as the basis
for the multiplication path.

This is tested by the ACLE patches but is really an independent
improvement.

2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
	multiplication case, try to compute VG * (lowest set bit) directly
	rather than always basing the multiplication on VG.  Use
	expand_mult for the multiplication if we can.

gcc/testsuite/
	* gcc.target/aarch64/sve/loop_add_4.c: Expect 10 INCWs and
	INCDs rather than 8.

From-SVN: r274519
2019-08-15 08:50:00 +00:00
INSTALL
config Add a build config for bootstrapping at -Og 2019-07-08 06:21:11 +00:00
contrib test_summary: Do not escape "=". 2019-08-13 17:17:49 +02:00
fixincludes
gcc [AArch64] Optimise aarch64_add_offset for SVE VL constants 2019-08-15 08:50:00 +00:00
gnattools
gotools
include Fix file descriptor existence of MinGW. 2019-08-08 07:50:28 +00:00
intl
libada
libatomic
libbacktrace
libcc1
libcpp * zh_TW.po: Update. 2019-08-09 23:02:08 +01:00
libdecnumber
libffi
libgcc config.gcc (hppa*-*-netbsd*): New target. 2019-07-31 14:11:16 +00:00
libgfortran PR fortran/91414 Bugfix for previous commit 2019-08-13 12:04:18 +03:00
libgo runtime: expose the g variable 2019-07-15 21:17:16 +00:00
libgomp re PR fortran/91424 (Extend warnings about DO loops) 2019-08-12 20:21:37 +00:00
libhsail-rt
libiberty Move is_valid_fd to filedescriptor.c file. 2019-08-12 07:36:48 +00:00
libitm
libobjc
liboffloadmic
libphobos
libquadmath quadmath.h (M_Eq, [...]): Use two more decimal places. 2019-08-02 09:59:19 +02:00
libsanitizer Refresh LOCAL_PATCHES 2019-08-14 08:50:24 +00:00
libssp
libstdc++-v3 Deprecate std::__is_nullptr_t type trait 2019-08-14 20:52:06 +01:00
libvtv
lto-plugin
maintainer-scripts update_web_docs_svn: Proceed even if the invocation of sphinx fails. 2019-08-04 22:31:54 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Add my name to MAINTAINERS. 2019-08-13 13:38:17 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS Add my name to MAINTAINERS. 2019-08-13 13:38:17 +00:00
Makefile.def
Makefile.in
Makefile.tpl
README
ar-lib
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

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.