Fix LSR's ExtractImmediate and ExtractSymbol to avoid calling
authorDan Gohman <gohman@apple.com>
Fri, 13 Aug 2010 21:17:19 +0000 (21:17 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Aug 2010 21:17:19 +0000 (21:17 +0000)
commite62d58884ad83d0351b9511d58eed4b21ff6e0b1
treedc35402fc8bd831d70d0944220a9930458d18e93
parent30baa634744325ef3452a78ec2b1948177b24256
Fix LSR's ExtractImmediate and ExtractSymbol to avoid calling
ScalarEvolution::getAddExpr, which can be pretty expensive, when nothing
has changed, which is pretty common.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111042 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp