From d256c21666a883b2baafed84732a57f737223cfa Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 1 Mar 2012 01:26:01 +0000 Subject: Move getBundleStart() into MachineInstrBundle.h. This allows the function to be inlined, and makes it suitable for use in getInstructionIndex(). Also provide a const version. C++ is great for touch typing practice. llvm-svn: 151782 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 03ca72e0818..3e16efa7285 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1522,7 +1522,7 @@ void LiveIntervals::handleMove(MachineInstr* MI) { SlotIndex OldIndex = indexes_->getInstructionIndex(MI); indexes_->removeMachineInstrFromMaps(MI); SlotIndex NewIndex = MI->isInsideBundle() ? - indexes_->getInstructionIndex(MI->getBundleStart()) : + indexes_->getInstructionIndex(MI) : indexes_->insertMachineInstrInMaps(MI); assert(getMBBStartIdx(MI->getParent()) <= OldIndex && OldIndex < getMBBEndIdx(MI->getParent()) && -- cgit v1.2.3