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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 24 10:48:41 PDT 2004



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.117 -> 1.118
---
Log message:

Fix a bug in a previous checkin of mine, correcting 
 Regression.CodeGen.Generic.2004-04-09-SameValueCoalescing.llx and the
code size problem.

This bug prevented us from doing most register coallesces.


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

Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.117 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.118
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.117	Sun Aug 15 17:23:09 2004
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Tue Aug 24 12:48:29 2004
@@ -661,7 +661,7 @@
   if (MRegisterInfo::isVirtualRegister(RegB))
     return RegClass != mf_->getSSARegMap()->getRegClass(RegB);
   else
-    return RegClass->contains(RegB);
+    return !RegClass->contains(RegB);
 }
 
 bool LiveIntervals::overlapsAliases(const LiveInterval *LHS,






More information about the llvm-commits mailing list