projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1325b42
)
Invoke instructions do not dominate all successors
author
Chris Lattner
<sabre@nondot.org>
Fri, 5 Aug 2005 01:03:27 +0000
(
01:03
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 5 Aug 2005 01:03:27 +0000
(
01:03
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22671
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index efeb2c3766f19f27f60942bd5efd45097644448c..d9c20872f88dd55f64140e515b62ffdfb8df60fb 100644
(file)
--- a/
lib/VMCore/Instructions.cpp
+++ b/
lib/VMCore/Instructions.cpp
@@
-167,7
+167,8
@@
Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) const {
if (HasUndefInput && !AllowNonDominatingInstruction)
if (Instruction *IV = dyn_cast<Instruction>(InVal))
// 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.
// All of the incoming values are the same, return the value now.