diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-24 14:35:25 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-24 14:35:25 +0000 |
commit | e719d9f8f29bfc227eb109f6cee51a150a25189f (patch) | |
tree | 43e842d5c6693185cfaf9dc2a755dde7a44d1e40 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | fcc1d9473ee6dbc79128561449ff8d603a846f92 (diff) |
LinearScanner hotspot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index bcb7bdb78c..d8d838d34f 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -460,11 +460,10 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur) bool ConflictsWithFixed = false; for (unsigned i = 0, e = fixed_.size(); i != e; ++i) { - if (physReg == fixed_[i].first->reg || - RegAliases.count(fixed_[i].first->reg)) { + IntervalPtr &IP = fixed_[i]; + if (physReg == IP.first->reg || RegAliases.count(IP.first->reg)) { // Okay, this reg is on the fixed list. Check to see if we actually // conflict. - IntervalPtr &IP = fixed_[i]; LiveInterval *I = IP.first; if (I->endNumber() > StartPosition) { LiveInterval::iterator II = I->advanceTo(IP.second, StartPosition); |