1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Remove printout, realize that instructions in the entry block dominate all

other blocks.

llvm-svn: 17099
This commit is contained in:
Chris Lattner 2004-10-17 21:31:34 +00:00
parent ac92e5fcd0
commit 795ae57cde

View File

@ -3386,12 +3386,12 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {
if (Instruction *I = dyn_cast<Instruction>(V)) { if (Instruction *I = dyn_cast<Instruction>(V)) {
// We know that the instruction dominates the PHI if there are no undef // We know that the instruction dominates the PHI if there are no undef
// values coming in. // values coming in.
for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) if (I->getParent() != &I->getParent()->getParent()->front())
if (isa<UndefValue>(PN.getIncomingValue(i))) { for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
std::cerr << "HAD TO DISABLE PHI ELIM IN IC!\n"; if (isa<UndefValue>(PN.getIncomingValue(i))) {
V = 0; V = 0;
break; break;
} }
} }
if (V) if (V)