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 | 2ce303b4061cb039c030ac416419c0c6b4475246 (patch) | |
| tree | 46f8f2e571fc4f68102bacc78cf29c353bdc5e7b /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | 5991cf77b2049df54d2a657078d7482779d35dd3 (diff) | |
| download | bcm5719-llvm-2ce303b4061cb039c030ac416419c0c6b4475246.tar.gz bcm5719-llvm-2ce303b4061cb039c030ac416419c0c6b4475246.zip | |
Fix Regression/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll,
hopefully not breaking too many other things.
llvm-svn: 20505
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index d2cef4bc0b8..95c1850089f 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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)); |

