aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-lang.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2016-09-07 14:56:59 +0000
committerWilco Dijkstra <wilco@gcc.gnu.org>2016-09-07 14:56:59 +0000
commitff0f3f1cb56ae7ee030fb9e66cdd583733a056b8 (patch)
treeec1572aa2f7fba6f3e827f68a120f7bdd0368c78 /gcc/c/c-lang.c
parentca235a8500c9e6c5ad1983ef91bb92c6d40861a8 (diff)
downloadgcc-ff0f3f1cb56ae7ee030fb9e66cdd583733a056b8.zip
gcc-ff0f3f1cb56ae7ee030fb9e66cdd583733a056b8.tar.gz
gcc-ff0f3f1cb56ae7ee030fb9e66cdd583733a056b8.tar.bz2
Improve aarch64_legitimize_address - avoid splitting the offset if it is supported.
Improve aarch64_legitimize_address - avoid splitting the offset if it is supported. When we do split, take the mode size into account. BLKmode falls into the unaligned case but should be treated like LDP/STP. This improves codesize slightly due to fewer base address calculations: int f(int *p) { return p[5000] + p[7000]; } Now generates: f: add x0, x0, 16384 ldr w1, [x0, 3616] ldr w0, [x0, 11616] add w0, w1, w0 ret instead of: f: add x1, x0, 16384 add x0, x0, 24576 ldr w1, [x1, 3616] ldr w0, [x0, 3424] add w0, w1, w0 ret gcc/ * config/aarch64/aarch64.c (aarch64_legitimize_address): Avoid use of base_offset if offset already in range. From-SVN: r240026
Diffstat (limited to 'gcc/c/c-lang.c')
0 files changed, 0 insertions, 0 deletions