aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 7882a9aefa..19f78f424c 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -2907,10 +2907,6 @@ LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator IP,
BB = DT.findNearestCommonDominator(BB, ExitingBlocks[i]);
Inputs.push_back(BB->getTerminator());
}
-
- // Be dominated by the loop latch, if it's unique.
- if (BasicBlock *Latch = PIL->getLoopLatch())
- Inputs.push_back(prior(BasicBlock::iterator(Latch->getTerminator())));
}
// Then, climb up the immediate dominator tree as far as we can go while