aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-15 01:23:52 +0000
committerLang Hames <lhames@gmail.com>2012-02-15 01:23:52 +0000
commitda7984fbbac967ddbe5de4e789f8f37c673a7d75 (patch)
treeb33581b63edba531487915a1c3764e4bb5216e6c /lib/CodeGen/MachineScheduler.cpp
parentbbfa5c02be2ef2a9ff965a4dcfe9e99665dcf0ef (diff)
Disentangle moving a machine instr from updating LiveIntervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--lib/CodeGen/MachineScheduler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp
index ba87f5a7ab..da52df9fea 100644
--- a/lib/CodeGen/MachineScheduler.cpp
+++ b/lib/CodeGen/MachineScheduler.cpp
@@ -229,7 +229,8 @@ void ScheduleTopDownLive::Schedule() {
if (&*InsertPos == MI)
++InsertPos;
else {
- Pass->LIS->moveInstr(InsertPos, MI);
+ BB->splice(InsertPos, BB, MI);
+ Pass->LIS->handleMove(MI);
if (Begin == InsertPos)
Begin = MI;
}