LSR IVChain improvement.
authorAndrew Trick <atrick@apple.com>
Sat, 9 Feb 2013 01:11:01 +0000 (01:11 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 9 Feb 2013 01:11:01 +0000 (01:11 +0000)
commitbc7059032b1d6c45d67db5e52eaae089638cffef
tree9612a390ce18af2929bb65660448b7a8eca97839
parent58c61e006f4dce1abb90e4f7c6acd03c16fdd026
LSR IVChain improvement.

Handle chains in which the same offset is used for both loads and
stores to the same array.

Fixes rdar://11410078.

llvm-svn: 174789
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/Transforms/LoopStrengthReduce/ARM/ivchain-ARM.ll
llvm/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll