commit | 673b347e5a4aa8ca382dfb38e0cc3e9ead6c68fe | [log] [tgz] |
---|---|---|
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | Mon Aug 22 14:50:12 2016 +0000 |
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | Mon Aug 22 14:50:12 2016 +0000 |
tree | 035c027f964b23efda10e5eca39ecf6fe6be17ad | |
parent | ed87d788d610063e7c6e74a12565001ce77a0d73 [diff] [blame] |
Reset isUndef when removing subreg from a def operand llvm-svn: 279437
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index f860bac..12081a9 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -93,6 +93,8 @@ // 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); }