mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Invoke instructions do not dominate all successors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -167,7 +167,8 @@ Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) const {
|
|||||||
if (HasUndefInput && !AllowNonDominatingInstruction)
|
if (HasUndefInput && !AllowNonDominatingInstruction)
|
||||||
if (Instruction *IV = dyn_cast<Instruction>(InVal))
|
if (Instruction *IV = dyn_cast<Instruction>(InVal))
|
||||||
// If it's in the entry block, it dominates everything.
|
// If it's in the entry block, it dominates everything.
|
||||||
if (IV->getParent() != &IV->getParent()->getParent()->front())
|
if (IV->getParent() != &IV->getParent()->getParent()->front() ||
|
||||||
|
isa<InvokeInst>(IV))
|
||||||
return 0; // Cannot guarantee that InVal dominates this PHINode.
|
return 0; // Cannot guarantee that InVal dominates this PHINode.
|
||||||
|
|
||||||
// All of the incoming values are the same, return the value now.
|
// All of the incoming values are the same, return the value now.
|
||||||
|
|||||||
Reference in New Issue
Block a user