mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove printout, realize that instructions in the entry block dominate all
other blocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e40f63428
commit
ca45930548
@ -3386,12 +3386,12 @@ 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.
|
||||
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;
|
||||
}
|
||||
if (I->getParent() != &I->getParent()->getParent()->front())
|
||||
for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
|
||||
if (isa<UndefValue>(PN.getIncomingValue(i))) {
|
||||
V = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (V)
|
||||
|
Loading…
Reference in New Issue
Block a user