diff options
| author | Dan Gohman <gohman@apple.com> | 2009-09-21 17:53:35 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-09-21 17:53:35 +0000 |
| commit | af57ae3da4ae265e18e11e0d84aa67039fe72467 (patch) | |
| tree | dad2c6669a67a0fcac3c269b7e85ab377e0daccb /llvm | |
| parent | 9045f235d2466a6862ff6e479dbe597a53d9771e (diff) | |
| download | bcm5719-llvm-af57ae3da4ae265e18e11e0d84aa67039fe72467.tar.gz bcm5719-llvm-af57ae3da4ae265e18e11e0d84aa67039fe72467.zip | |
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.
llvm-svn: 82462
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenLICM.cpp | 3 |
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. |

