forked from OSchip/llvm-project
Reset isUndef when removing subreg from a def operand
llvm-svn: 279437
This commit is contained in:
parent
ed87d788d6
commit
673b347e5a
|
@ -93,6 +93,8 @@ void MachineOperand::substPhysReg(unsigned Reg, const TargetRegisterInfo &TRI) {
|
|||
// Note that getSubReg() may return 0 if the sub-register doesn't exist.
|
||||
// That won't happen in legal code.
|
||||
setSubReg(0);
|
||||
if (isDef())
|
||||
setIsUndef(false);
|
||||
}
|
||||
setReg(Reg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue