From: Matthias Braun Date: Fri, 9 Jan 2015 03:01:26 +0000 (+0000) Subject: RegisterCoalescer: No need to set kill flags, they are recompute later anyway X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdddd47cc63b87d3996858cb7c03e4cebb42ba13;p=llvm RegisterCoalescer: No need to set kill flags, they are recompute later anyway git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index e5306f9da48..b5993bfb401 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -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