aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-21 17:53:35 +0000
committerDan Gohman <gohman@apple.com>2009-09-21 17:53:35 +0000
commitb350b3d81e6b7df211447f0bc54b4493af9aa444 (patch)
tree9ea6c9fdf747c47bc1ea3cb3e4ded7a1f0351a13 /lib/Transforms
parent012b360d60c62c975af276d9a04fcfd79cf3ac9c (diff)
downloadexternal_llvm-b350b3d81e6b7df211447f0bc54b4493af9aa444.zip
external_llvm-b350b3d81e6b7df211447f0bc54b4493af9aa444.tar.gz
external_llvm-b350b3d81e6b7df211447f0bc54b4493af9aa444.tar.bz2
Remove the special-case for constants in PHI nodes; it's not really
helpful, and it didn't correctly handle the case of constants input to PHIs for backedges. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/CodeGenLICM.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/CodeGenLICM.cpp b/lib/Transforms/Scalar/CodeGenLICM.cpp
index ef9f81e..778f3d2 100644
--- a/lib/Transforms/Scalar/CodeGenLICM.cpp
+++ b/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.