[llvm-commits] [llvm] r103436 - /llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp
Evan Cheng
evan.cheng at apple.com
Mon May 10 14:25:30 PDT 2010
Author: evancheng
Date: Mon May 10 16:25:30 2010
New Revision: 103436
URL: http://llvm.org/viewvc/llvm-project?rev=103436&view=rev
Log:
It's not safe to propagate implicit_def that defines part of a register.
Modified:
llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp
Modified: llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp?rev=103436&r1=103435&r2=103436&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ProcessImplicitDefs.cpp Mon May 10 16:25:30 2010
@@ -89,6 +89,8 @@
MachineInstr *MI = &*I;
++I;
if (MI->isImplicitDef()) {
+ if (MI->getOperand(0).getSubReg())
+ continue;
unsigned Reg = MI->getOperand(0).getReg();
ImpDefRegs.insert(Reg);
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
More information about the llvm-commits
mailing list