Add a "moveInstr" method to LiveIntervals. This can be used to move instructions
authorLang Hames <lhames@gmail.com>
Fri, 27 Jan 2012 22:36:19 +0000 (22:36 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 27 Jan 2012 22:36:19 +0000 (22:36 +0000)
commit907cc8f38df212a87a6028682d91df01ba923f4f
tree8d80357d733e0bc70369c586de4f0a9e1f148f7f
parentff21bb53ae9496b0e24d0ea0cb392fae1d49128b
Add a "moveInstr" method to LiveIntervals. This can be used to move instructions
around within a basic block while maintaining live-intervals.

Updated ScheduleTopDownLive in MachineScheduler.cpp to use the moveInstr API
when reordering MIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149147 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/MachineScheduler.cpp
lib/CodeGen/RegisterCoalescer.cpp