From: Chris Lattner Date: Tue, 24 Aug 2004 17:48:29 +0000 (+0000) Subject: Fix a bug in a previous checkin of mine, correcting X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d0d0a1a08f9e27f4c950e846e0a21c3c3f11e40c;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 649068883b8..6cf95d20903 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -661,7 +661,7 @@ bool LiveIntervals::differingRegisterClasses(unsigned RegA, 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,