Add SlotIndexes::repairIndexesInRange(), which repairs SlotIndexes after adding
authorCameron Zwarich <zwarich@apple.com>
Wed, 20 Feb 2013 06:46:41 +0000 (06:46 +0000)
committerCameron Zwarich <zwarich@apple.com>
Wed, 20 Feb 2013 06:46:41 +0000 (06:46 +0000)
commit294148238731d5b5e51f7664f303717cd93448ba
tree0a4143bb931e180f32c277dc8fd675f215a7a509
parent26ef663c42660a74a025bbf6b7f316f3e37815cc
Add SlotIndexes::repairIndexesInRange(), which repairs SlotIndexes after adding
and removing instructions. The implementation seems more complicated than it
needs to be, but I couldn't find something simpler that dealt with all of the
corner cases.

Also add a call to repairIndexesInRange() from repairIntervalsInRange().

llvm-svn: 175601
llvm/include/llvm/CodeGen/SlotIndexes.h
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
llvm/lib/CodeGen/SlotIndexes.cpp