mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Handle another case exposed on X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -274,6 +274,10 @@ public:
|
|||||||
/// specified physreg. If CanClobber is true, the physreg can be modified at
|
/// specified physreg. If CanClobber is true, the physreg can be modified at
|
||||||
/// any time without changing the semantics of the program.
|
/// any time without changing the semantics of the program.
|
||||||
void addAvailable(int Slot, unsigned Reg, bool CanClobber = true) {
|
void addAvailable(int Slot, unsigned Reg, bool CanClobber = true) {
|
||||||
|
// If this stack slot is thought to be available in some other physreg,
|
||||||
|
// remove its record.
|
||||||
|
ModifyStackSlot(Slot);
|
||||||
|
|
||||||
PhysRegsAvailable.insert(std::make_pair(Reg, Slot));
|
PhysRegsAvailable.insert(std::make_pair(Reg, Slot));
|
||||||
SpillSlotsAvailable[Slot] = (Reg << 1) | CanClobber;
|
SpillSlotsAvailable[Slot] = (Reg << 1) | CanClobber;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user