[PowerPC] Don't consider fusion in PPC64 address-formation peephole
authorHal Finkel <hfinkel@anl.gov>
Fri, 2 Sep 2016 00:27:50 +0000 (00:27 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 2 Sep 2016 00:27:50 +0000 (00:27 +0000)
commit1e8218cc095cb7c7a4897e846b60e0672ed49271
treedfa6e3fad16922a0b5e3b609fb6614c5fb31e321
parentc15c9ebb1d51d55564889a567aa70e9b42319b9b
[PowerPC] Don't consider fusion in PPC64 address-formation peephole

The logic in this function assumes that the P8 supports fusion of addis/addi,
but it does not. As a result, there is no advantage to restricting our peephole
application, merging addi instructions into dependent memory accesses, even
when the addi has multiple users, regardless of whether or not we're optimizing
for size.

We might need something like this again for the P9; I suspect we'll revisit
this code when we work on P9 tuning.

llvm-svn: 280440
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/test/CodeGen/PowerPC/peephole-align.ll