[llvm-commits] [llvm] r103407 - /llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp
Bob Wilson
bob.wilson at apple.com
Mon May 10 10:14:27 PDT 2010
Author: bwilson
Date: Mon May 10 12:14:26 2010
New Revision: 103407
URL: http://llvm.org/viewvc/llvm-project?rev=103407&view=rev
Log:
Fix PR7096. When a block containing multiple defs is tail duplicated, the
SSAUpdater for the value from the first def may see uses of undefined values,
because the later defs will not have been updated yet.
Modified:
llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp
Modified: llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp?rev=103407&r1=103406&r2=103407&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineSSAUpdater.cpp Mon May 10 12:14:26 2010
@@ -329,7 +329,7 @@
/// InstrIsPHI - Check if an instruction is a PHI.
///
static MachineInstr *InstrIsPHI(MachineInstr *I) {
- if (I->isPHI())
+ if (I && I->isPHI())
return I;
return 0;
}
More information about the llvm-commits
mailing list