diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-12 19:35:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-12 19:35:25 +0000 |
commit | e741da4a53bc794eef076e1b764f9cdbb41eb658 (patch) | |
tree | 25752e8c76c30020e5fb569c54365305ae53fa6b /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | a5a1d1b828c37746c230800cc79902098a8683b3 (diff) | |
download | external_llvm-e741da4a53bc794eef076e1b764f9cdbb41eb658.zip external_llvm-e741da4a53bc794eef076e1b764f9cdbb41eb658.tar.gz external_llvm-e741da4a53bc794eef076e1b764f9cdbb41eb658.tar.bz2 |
Reapply 95979, a compile-time speedup, now that the bug it exposed is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index a218af9..26da4eb 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1902,10 +1902,10 @@ static void CollectSubexprs(const SCEV *S, const SCEVConstant *C, } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { // Split a non-zero base out of an addrec. if (!AR->getStart()->isZero()) { - CollectSubexprs(AR->getStart(), C, Ops, SE); CollectSubexprs(SE.getAddRecExpr(SE.getIntegerSCEV(0, AR->getType()), AR->getStepRecurrence(SE), AR->getLoop()), C, Ops, SE); + CollectSubexprs(AR->getStart(), C, Ops, SE); return; } } else if (const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(S)) { |