From da7984fbbac967ddbe5de4e789f8f37c673a7d75 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 15 Feb 2012 01:23:52 +0000 Subject: 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 --- include/llvm/CodeGen/LiveIntervalAnalysis.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h') diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index c18c479ce8..4bc37fd1da 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -280,10 +280,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); + /// handleMove - call this method to notify LiveIntervals that + /// instruction 'mi' has been moved within a basic block. This will update + /// the live intervals for all operands of mi. Moves between basic blocks + /// are not supported. + void handleMove(MachineInstr* mi); // Register mask functions. // -- cgit v1.2.3