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,9 +3386,9 @@ 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.
if (I->getParent() != &I->getParent()->getParent()->front())
for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
if (isa<UndefValue>(PN.getIncomingValue(i))) { if (isa<UndefValue>(PN.getIncomingValue(i))) {
std::cerr << "HAD TO DISABLE PHI ELIM IN IC!\n";
V = 0; V = 0;
break; break;
} }