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)
commit089a5f8a8c5e24f996dd41419de2c7bc7b42ea29
tree91f63db4375a3607aadf2b0bd4efdbd1b2fdca4c
parent0cf5d396c14c71dd4fa1d102c2b3d178b1191436
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/PowerPC/stdux-constuse.ll [new file with mode: 0644]