summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-24 14:35:25 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-24 14:35:25 +0000
commita916192267804743ef61f54929c5aeb0dfbd9ffd (patch)
treeb2ec05c941362815ee705db481be8c3b53b6b758 /llvm/lib/CodeGen
parent516cd40b5c6dd3f3c63c03b245b27a1a4fe8a094 (diff)
downloadbcm5719-llvm-a916192267804743ef61f54929c5aeb0dfbd9ffd.tar.gz
bcm5719-llvm-a916192267804743ef61f54929c5aeb0dfbd9ffd.zip
LinearScanner hotspot.
llvm-svn: 31153
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index bcb7bdb78c9..d8d838d34fa 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud