diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-06 22:36:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-06 22:36:12 +0000 |
commit | 3f93197098e8c553fefdc2a1b6444838c222695b (patch) | |
tree | 11a3fb45838a3db78e0b931c508027d838e786e3 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 2d9005d61fc7e7f0b4b3e1886e6a478119e36414 (diff) |
Fix Regression/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll,
hopefully not breaking too many other things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20505 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 d2cef4bc0b..95c1850089 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -189,7 +189,7 @@ void LoopStrengthReduce::strengthReduceGEP(GetElementPtrInst *GEPI, Loop *L, // that it was the induction variable, and has been replaced by a constant // null value. In this case, replace the GEP with a use of pointer directly. PHINode *NewPHI; - if (1) { + if (Cache->CachedPHINode == 0) { Value *PreGEP; if (AllConstantOperands && isa<Constant>(GEPI->getOperand(0))) { Constant *C = dyn_cast<Constant>(GEPI->getOperand(0)); |