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:
26c4cf4
)
Fix PR7096. When a block containing multiple defs is tail duplicated, the
author
Bob Wilson
<bob.wilson@apple.com>
Mon, 10 May 2010 17:14:26 +0000
(17:14 +0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Mon, 10 May 2010 17:14:26 +0000
(17:14 +0000)
SSAUpdater for the value from the first def may see uses of undefined values,
because the later defs will not have been updated yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103407
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineSSAUpdater.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineSSAUpdater.cpp
b/lib/CodeGen/MachineSSAUpdater.cpp
index 99fb99ac3c72254b40d69a724616a972e831398b..84d6df25397c5eb2d854df768c01ca962f472e12 100644
(file)
--- a/
lib/CodeGen/MachineSSAUpdater.cpp
+++ b/
lib/CodeGen/MachineSSAUpdater.cpp
@@
-329,7
+329,7
@@
public:
/// InstrIsPHI - Check if an instruction is a PHI.
///
static MachineInstr *InstrIsPHI(MachineInstr *I) {
- if (I->isPHI())
+ if (I
&& I
->isPHI())
return I;
return 0;
}