mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove printout, realize that instructions in the entry block dominate all
other blocks. llvm-svn: 17099
This commit is contained in:
parent
ac92e5fcd0
commit
795ae57cde
@ -3386,9 +3386,9 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {
|
||||
if (Instruction *I = dyn_cast<Instruction>(V)) {
|
||||
// We know that the instruction dominates the PHI if there are no undef
|
||||
// values coming in.
|
||||
if (I->getParent() != &I->getParent()->getParent()->front())
|
||||
for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
|
||||
if (isa<UndefValue>(PN.getIncomingValue(i))) {
|
||||
std::cerr << "HAD TO DISABLE PHI ELIM IN IC!\n";
|
||||
V = 0;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user