Fix LSR to tolerate cases where ScalarEvolution initially
authorDan Gohman <gohman@apple.com>
Fri, 23 Apr 2010 01:55:05 +0000 (01:55 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 Apr 2010 01:55:05 +0000 (01:55 +0000)
commitfafb890ee204d60456d0780ff55a149fa082eaea
tree3be1fcd844734fe3036a9393c946ceb1c76f4bce
parentc6863989fc268ee0ff1469e4856e2e9404e67336
Fix LSR to tolerate cases where ScalarEvolution initially
misses an opportunity to fold add operands, but folds them
after LSR has separated them out. This fixes rdar://7886751.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/README.txt
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/lsr-delayed-fold.ll [new file with mode: 0644]