mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[AArch64] Strengthen the code for the prologue insertion.
The spilled registers are pristine and thus, correctly handled by the register scavenger and so on, but the liveness information is strictly speaking wrong at this point. Fix that. llvm-svn: 234664
This commit is contained in:
parent
ea3a855088
commit
5841518be6
@ -787,6 +787,8 @@ bool AArch64FrameLowering::spillCalleeSavedRegisters(
|
||||
if (StrOpc == AArch64::STPDpre || StrOpc == AArch64::STPXpre)
|
||||
MIB.addReg(AArch64::SP, RegState::Define);
|
||||
|
||||
MBB.addLiveIn(Reg1);
|
||||
MBB.addLiveIn(Reg2);
|
||||
MIB.addReg(Reg2, getPrologueDeath(MF, Reg2))
|
||||
.addReg(Reg1, getPrologueDeath(MF, Reg1))
|
||||
.addReg(AArch64::SP)
|
||||
|
Loading…
Reference in New Issue
Block a user