diff options
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 76edc08c52a..f525ccd211e 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -1213,7 +1213,7 @@ static bool RegistersDefinedFromSameValue(LiveIntervals &li, // 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; |