[llvm] r225501 - RegisterCoalescer: No need to set kill flags, they are recompute later anyway
Matthias Braun
matze at braunis.de
Thu Jan 8 19:01:26 PST 2015
Author: matze
Date: Thu Jan 8 21:01:26 2015
New Revision: 225501
URL: http://llvm.org/viewvc/llvm-project?rev=225501&view=rev
Log:
RegisterCoalescer: No need to set kill flags, they are recompute later anyway
Modified:
llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=225501&r1=225500&r2=225501&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Thu Jan 8 21:01:26 2015
@@ -694,8 +694,6 @@ bool RegisterCoalescer::removeCopyByComm
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
More information about the llvm-commits
mailing list