[llvm] r350811 - [ARM] Fix for verifier buildbot
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 10 02:47:23 PST 2019
Author: sam_parker
Date: Thu Jan 10 02:47:23 2019
New Revision: 350811
URL: http://llvm.org/viewvc/llvm-project?rev=350811&view=rev
Log:
[ARM] Fix for verifier buildbot
Copy the MachineOperand first and then change the flags instead of
making a copy.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp?rev=350811&r1=350810&r2=350811&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp Thu Jan 10 02:47:23 2019
@@ -919,11 +919,11 @@ Thumb2SizeReduce::ReduceToNarrow(Machine
// it into an EOR which does. So add the first operand as a def and then
// again as a use.
if (MCID.getOpcode() == ARM::t2TEQrr) {
- MachineOperand MO = MI->getOperand(0);
- MO.setIsKill(false);
- MO.setIsDef(true);
- MO.setIsDead(true);
- MIB.add(MO);
+ MIB.add(MI->getOperand(0));
+ MIB->getOperand(0).setIsKill(false);
+ MIB->getOperand(0).setIsDef(true);
+ MIB->getOperand(0).setIsDead(true);
+
if (NewMCID.hasOptionalDef())
MIB.add(HasCC ? t1CondCodeOp(CCDead) : condCodeOp());
MIB.add(MI->getOperand(0));
More information about the llvm-commits
mailing list