mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
My friend the invoke instruction does not dominate all basic blocks if it
occurs in the entry node of a function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28e792c232
commit
77bcee74da
@ -3386,7 +3386,8 @@ 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())
|
||||
if (I->getParent() != &I->getParent()->getParent()->front() ||
|
||||
isa<InvokeInst>(I))
|
||||
for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
|
||||
if (isa<UndefValue>(PN.getIncomingValue(i))) {
|
||||
V = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user