aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-map-tests.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2019-07-01 17:15:41 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2019-07-01 17:15:41 +0200
commitb94eec3beaf19d2bace6f4f2018d9e0bd1981f56 (patch)
tree0b7ddf6017519fecd267146cbf9d0b6c304299f0 /gcc/hash-map-tests.c
parentd5c15d688abd1aca27202e690cc13f686051c116 (diff)
downloadgcc-b94eec3beaf19d2bace6f4f2018d9e0bd1981f56.zip
gcc-b94eec3beaf19d2bace6f4f2018d9e0bd1981f56.tar.gz
gcc-b94eec3beaf19d2bace6f4f2018d9e0bd1981f56.tar.bz2
rs6000: Improve indexed addressing
The function rs6000_force_indexed_or_indirect_mem makes a memory operand suitable for indexed (or indirect) addressing. If the memory address isn't yet valid, it loads the whole thing into a register to make it valid. That isn't optimal. This changes it to load an address that is the sum of two things into two registers instead. This results in lower latency code, and if inside loops, a constant term can be moved outside the loop. * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem): Load both operands of a PLUS into registers separately. From-SVN: r272886
Diffstat (limited to 'gcc/hash-map-tests.c')
0 files changed, 0 insertions, 0 deletions