DAGCombiner: Constant folding around pre-increment loads/stores
authorHal Finkel <hfinkel@anl.gov>
Fri, 8 Feb 2013 21:35:47 +0000 (21:35 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 8 Feb 2013 21:35:47 +0000 (21:35 +0000)
commit2581905f8149fa79e3ca75e33f8a08d4d6a23546
tree0e7d986a501c59bdda6868126736ca836230f7fd
parent8d7edced830ffb36802a98e95fb625d76e3cc34f
DAGCombiner: Constant folding around pre-increment loads/stores

Previously, even when a pre-increment load or store was generated,
we often needed to keep a copy of the original base register for use
with other offsets. If all of these offsets are constants (including
the offset which was combined into the addressing mode), then this is
clearly unnecessary. This change adjusts these other offsets to use the
new incremented address.

llvm-svn: 174746
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/PowerPC/stdux-constuse.ll [new file with mode: 0644]