summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-24 17:48:29 +0000
committerChris Lattner <sabre@nondot.org>2004-08-24 17:48:29 +0000
commitd8b5be4726dc23c2e75201e1a74543ece03d9936 (patch)
tree14ab67a5b041ef301bc727316c9a80f122932534 /llvm/lib/CodeGen
parentad4c8e330f90b672248713eb74aeec0376a0a2ec (diff)
downloadbcm5719-llvm-d8b5be4726dc23c2e75201e1a74543ece03d9936.tar.gz
bcm5719-llvm-d8b5be4726dc23c2e75201e1a74543ece03d9936.zip
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. llvm-svn: 16031
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 649068883b8..6cf95d20903 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud