mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -273,6 +273,11 @@ namespace llvm {
|
||||
/// register.
|
||||
void addKillFlags();
|
||||
|
||||
/// moveInstr - Move MachineInstr mi to insertPt, updating the live
|
||||
/// intervals of mi's operands to reflect the new position. The insertion
|
||||
/// point can be above or below mi, but must be in the same basic block.
|
||||
void moveInstr(MachineBasicBlock::iterator insertPt, MachineInstr* mi);
|
||||
|
||||
private:
|
||||
/// computeIntervals - Compute live intervals.
|
||||
void computeIntervals();
|
||||
|
Reference in New Issue
Block a user