[PPC] Use SeparateConstOffsetFromGEP
authorHal Finkel <hfinkel@anl.gov>
Fri, 21 Nov 2014 04:35:51 +0000 (04:35 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 21 Nov 2014 04:35:51 +0000 (04:35 +0000)
commit361eafaffa0a345c242373b593196d0f9dfa9967
treec480201bb01b3990160a0470728cb904f55b4277
parentc670d3bfc3fb662a64e8033d0211ed4512fba056
[PPC] Use SeparateConstOffsetFromGEP

This mirrors r222331, which enabled SeparateConstOffsetFromGEP on AArch64, in
the PowerPC backend. Yields, on a POWER7 machine, a 30% speedup on
SingleSource/Benchmarks/Shootout/nestedloop (this might just be from LICM,
there is a store moved out of the inner loop) and a potential speedup on
MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode. Regardless, it
makes some code look cleaner, and synchronizing the backends in this regard
seems like a generally good thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222504 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCTargetMachine.cpp
test/CodeGen/PowerPC/ppc64-gep-opt.ll [new file with mode: 0644]