mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
maintain LiveIn when splitting blocks (register scavenging needs it)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -180,6 +180,13 @@ void RegScavenger::backward() {
|
||||
setUsed(ChangedRegs);
|
||||
}
|
||||
|
||||
void RegScavenger::getRegsUsed(BitVector &used, bool includeReserved) {
|
||||
if (includeReserved)
|
||||
used = RegStates;
|
||||
else
|
||||
used = RegStates & ~ReservedRegs;
|
||||
}
|
||||
|
||||
/// CreateRegClassMask - Set the bits that represent the registers in the
|
||||
/// TargetRegisterClass.
|
||||
static void CreateRegClassMask(const TargetRegisterClass *RC, BitVector &Mask) {
|
||||
|
Reference in New Issue
Block a user