[llvm] r234664 - [AArch64] Strengthen the code for the prologue insertion.
Quentin Colombet
qcolombet at apple.com
Fri Apr 10 16:14:34 PDT 2015
Author: qcolombet
Date: Fri Apr 10 18:14:34 2015
New Revision: 234664
URL: http://llvm.org/viewvc/llvm-project?rev=234664&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64FrameLowering.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64FrameLowering.cpp?rev=234664&r1=234663&r2=234664&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64FrameLowering.cpp Fri Apr 10 18:14:34 2015
@@ -787,6 +787,8 @@ bool AArch64FrameLowering::spillCalleeSa
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)
More information about the llvm-commits
mailing list