LinearScanner hotspot.
authorJim Laskey <jlaskey@mac.com>
Tue, 24 Oct 2006 14:35:25 +0000 (14:35 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 24 Oct 2006 14:35:25 +0000 (14:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLinearScan.cpp

index bcb7bdb78c9fd51f9b3ed483dfb2a90d8521f48f..d8d838d34fad5a304b41851e00c343f5e4b42be2 100644 (file)
@@ -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);