mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
Reset isUndef when removing subreg from a def operand
llvm-svn: 279437
This commit is contained in:
parent
dc666729a5
commit
8a69174992
@ -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…
x
Reference in New Issue
Block a user