[llvm] r279437 - Reset isUndef when removing subreg from a def operand
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 07:50:12 PDT 2016
Author: kparzysz
Date: Mon Aug 22 09:50:12 2016
New Revision: 279437
URL: http://llvm.org/viewvc/llvm-project?rev=279437&view=rev
Log:
Reset isUndef when removing subreg from a def operand
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=279437&r1=279436&r2=279437&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Mon Aug 22 09:50:12 2016
@@ -93,6 +93,8 @@ void MachineOperand::substPhysReg(unsign
// 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);
}
More information about the llvm-commits
mailing list