aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-01 04:29:47 +0000
committerChris Lattner <sabre@nondot.org>2004-07-01 04:29:47 +0000
commit8ba9771549bcff6109ad45ff3944a1b6c3c54b46 (patch)
tree2842a08ba2a2e3eec15e8a9e3c59d8be0fd4e231 /lib/CodeGen/LiveIntervalAnalysis.cpp
parenta5287a63762fbf0976e333fb7787ec135fdc2061 (diff)
Start using MBB numbers directly instead of going through the live variables
map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4fc08ec6b9..cdcebfcc7e 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -96,7 +96,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
unsigned miIndex = 0;
for (MachineFunction::iterator mbb = mf_->begin(), mbbEnd = mf_->end();
mbb != mbbEnd; ++mbb) {
- unsigned mbbIdx = lv_->getMachineBasicBlockIndex(mbb);
+ unsigned mbbIdx = mbb->getNumber();
bool inserted = mbbi2mbbMap_.insert(std::make_pair(mbbIdx,
mbb)).second;
assert(inserted && "multiple index -> MachineBasicBlock");