[llvm-commits] [llvm] r67157 - /llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Evan Cheng
evan.cheng at apple.com
Tue Mar 17 19:43:10 PDT 2009
Author: evancheng
Date: Tue Mar 17 21:43:10 2009
New Revision: 67157
URL: http://llvm.org/viewvc/llvm-project?rev=67157&view=rev
Log:
Merge in 64440.
Modified:
llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=67157&r1=67156&r2=67157&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopStrengthReduce.cpp Tue Mar 17 21:43:10 2009
@@ -433,7 +433,7 @@
// If Start contains an SCEVAddRecExpr from a different loop, other than an
// outer loop of the current loop, reject it. SCEV has no concept of
// operating on one loop at a time so don't confuse it with such expressions.
- if (containsAddRecFromDifferentLoop(Start, L))
+ if (containsAddRecFromDifferentLoop(AddRec->getOperand(0), L))
return false;
Start = SE->getAddExpr(Start, AddRec->getOperand(0));
More information about the llvm-commits
mailing list