[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)
commitf413be11f0df6374d4091114ec81a758a14b4f18
tree6f2ac1774daf8bcbc6caae6e9e0719c63c41c56f
parent3630c399727acf2936ea14cb2d51e8b1e747bfbd
[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.

llvm-svn: 222504
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
llvm/test/CodeGen/PowerPC/ppc64-gep-opt.ll [new file with mode: 0644]