summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/CodeGenLICM.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenLICM.cpp b/llvm/lib/Transforms/Scalar/CodeGenLICM.cpp
index ef9f81e266d..778f3d25a67 100644
--- a/llvm/lib/Transforms/Scalar/CodeGenLICM.cpp
+++ b/llvm/lib/Transforms/Scalar/CodeGenLICM.cpp
@@ -60,9 +60,6 @@ bool CodeGenLICM::runOnLoop(Loop *L, LPPassManager &) {
for (BasicBlock::iterator BBI = BB->begin(), BBE = BB->end();
BBI != BBE; ++BBI) {
Instruction *I = BBI;
- // Don't bother hoisting constants out of loop-header phi nodes.
- if (BB == L->getHeader() && isa<PHINode>(I))
- continue;
// TODO: For now, skip all intrinsic instructions, because some of them
// can require their operands to be constants, and we don't want to
// break that.
OpenPOWER on IntegriCloud