mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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
This commit is contained in:
parent
b1c7502032
commit
ea9d53d563
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user