diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-18 01:20:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-18 01:20:44 +0000 |
commit | fd7231f1fe2ceed126bee6593f940563158c690f (patch) | |
tree | c8566ebcaa2d302c0a1832ab3a654d0d2591b311 /llvm/lib | |
parent | 6ab7ed40c7402eecaeadbb04d8ae42e0b9b64245 (diff) | |
download | bcm5719-llvm-fd7231f1fe2ceed126bee6593f940563158c690f.tar.gz bcm5719-llvm-fd7231f1fe2ceed126bee6593f940563158c690f.zip |
Minor code simplification.
llvm-svn: 91653
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 1233f455d26..0601423f8cc 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -212,8 +212,6 @@ Pass *llvm::createLoopStrengthReducePass(const TargetLowering *TLI) { /// specified set are trivially dead, delete them and see if this makes any of /// their operands subsequently dead. void LoopStrengthReduce::DeleteTriviallyDeadInstructions() { - if (DeadInsts.empty()) return; - while (!DeadInsts.empty()) { Instruction *I = dyn_cast_or_null<Instruction>(DeadInsts.pop_back_val()); @@ -2720,8 +2718,7 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) { IVsByStride.clear(); // Clean up after ourselves - if (!DeadInsts.empty()) - DeleteTriviallyDeadInstructions(); + DeleteTriviallyDeadInstructions(); } // At this point, it is worth checking to see if any recurrence PHIs are also |