mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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
This commit is contained in:
@ -661,7 +661,7 @@ bool LiveIntervals::differingRegisterClasses(unsigned RegA,
|
|||||||
if (MRegisterInfo::isVirtualRegister(RegB))
|
if (MRegisterInfo::isVirtualRegister(RegB))
|
||||||
return RegClass != mf_->getSSARegMap()->getRegClass(RegB);
|
return RegClass != mf_->getSSARegMap()->getRegClass(RegB);
|
||||||
else
|
else
|
||||||
return RegClass->contains(RegB);
|
return !RegClass->contains(RegB);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LiveIntervals::overlapsAliases(const LiveInterval *LHS,
|
bool LiveIntervals::overlapsAliases(const LiveInterval *LHS,
|
||||||
|
Reference in New Issue
Block a user