RegisterCoalescer: No need to set kill flags, they are recompute later anyway
authorMatthias Braun <matze@braunis.de>
Fri, 9 Jan 2015 03:01:26 +0000 (03:01 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 9 Jan 2015 03:01:26 +0000 (03:01 +0000)
llvm-svn: 225501

llvm/lib/CodeGen/RegisterCoalescer.cpp

index e5306f9..b5993bf 100644 (file)
@@ -694,8 +694,6 @@ bool RegisterCoalescer::removeCopyByCommutingDef(const CoalescerPair &CP,
     MBB->insert(Pos, NewMI);
     MBB->erase(DefMI);
   }
-  unsigned OpIdx = NewMI->findRegisterUseOperandIdx(IntA.reg, false);
-  NewMI->getOperand(OpIdx).setIsKill();
 
   // If ALR and BLR overlaps and end of BLR extends beyond end of ALR, e.g.
   // A = or A, B