mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
It's not safe to propagate implicit_def that defines part of a register.
llvm-svn: 103436
This commit is contained in:
parent
040646a78e
commit
119fec2a67
@ -89,6 +89,8 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
MachineInstr *MI = &*I;
|
MachineInstr *MI = &*I;
|
||||||
++I;
|
++I;
|
||||||
if (MI->isImplicitDef()) {
|
if (MI->isImplicitDef()) {
|
||||||
|
if (MI->getOperand(0).getSubReg())
|
||||||
|
continue;
|
||||||
unsigned Reg = MI->getOperand(0).getReg();
|
unsigned Reg = MI->getOperand(0).getReg();
|
||||||
ImpDefRegs.insert(Reg);
|
ImpDefRegs.insert(Reg);
|
||||||
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
|
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user