diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-08-22 14:50:12 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-08-22 14:50:12 +0000 |
commit | 673b347e5a4aa8ca382dfb38e0cc3e9ead6c68fe (patch) | |
tree | 035c027f964b23efda10e5eca39ecf6fe6be17ad /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | ed87d788d610063e7c6e74a12565001ce77a0d73 (diff) | |
download | bcm5719-llvm-673b347e5a4aa8ca382dfb38e0cc3e9ead6c68fe.tar.gz bcm5719-llvm-673b347e5a4aa8ca382dfb38e0cc3e9ead6c68fe.zip |
Reset isUndef when removing subreg from a def operand
llvm-svn: 279437
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index f860bac2169..12081a9fa90 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -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); } |