[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jan 22 14:08:04 PST 2004


Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.32 -> 1.33

---
Log message:

Remove unneeded check. An interval in active, by definition overlaps
with the current one.


---
Diffs of the changes:  (+1 -4)

Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.32 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.33
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.32	Thu Jan 22 13:24:43 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Thu Jan 22 14:07:18 2004
@@ -522,12 +522,9 @@
     for (unsigned i = 0; i < MRegisterInfo::FirstVirtualRegister; ++i)
         regWeight[i] = 0.0F;
 
-    // for each interval in active that overlaps
+    // for each interval in active
     for (IntervalPtrs::const_iterator i = active_.begin(), e = active_.end();
          i != e; ++i) {
-        if (!cur->overlaps(**i))
-            continue;
-
         unsigned reg = (*i)->reg;
         if (reg >= MRegisterInfo::FirstVirtualRegister) {
             reg = v2pMap_[reg];





More information about the llvm-commits mailing list