forked from OSchip/llvm-project
It's not safe to propagate implicit_def that defines part of a register.
llvm-svn: 103436
This commit is contained in:
parent
9d55b23425
commit
d6908dc4a2
|
@ -89,6 +89,8 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &fn) {
|
|||
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)) {
|
||||
|
|
Loading…
Reference in New Issue