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
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.