diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-08-24 17:48:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-08-24 17:48:29 +0000 |
| commit | d8b5be4726dc23c2e75201e1a74543ece03d9936 (patch) | |
| tree | 14ab67a5b041ef301bc727316c9a80f122932534 /llvm/lib/CodeGen | |
| parent | ad4c8e330f90b672248713eb74aeec0376a0a2ec (diff) | |
| download | bcm5719-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.cpp | 2 |
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, |

