[llvm-commits] [llvm] r134229 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Jun 30 20:31:30 PDT 2011
Author: rafael
Date: Thu Jun 30 22:31:29 2011
New Revision: 134229
URL: http://llvm.org/viewvc/llvm-project?rev=134229&view=rev
Log:
Fix off by one error. I misunderstood the comment about killedAt.
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=134229&r1=134228&r2=134229&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Thu Jun 30 22:31:29 2011
@@ -1213,7 +1213,7 @@
// FIXME: If "B = X" kills X, we have to move the kill back to its
// previous use. For now we just avoid the optimization in that case.
- SlotIndex CopyIdx = li.getInstructionIndex(MI).getNextIndex().getDefIndex();
+ SlotIndex CopyIdx = li.getInstructionIndex(MI).getDefIndex();
LiveInterval &SrcInt = li.getInterval(Src);
if (SrcInt.killedAt(CopyIdx))
return false;
More information about the llvm-commits
mailing list