mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Teach frame lowering to ignore debug values after the terminators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -187,7 +187,7 @@ void SPUFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
// sufficient number instructions in the basic block. Note that
|
||||
// this is just a best guess based on the basic block's size.
|
||||
if (MBB.size() >= (unsigned) SPUFrameLowering::branchHintPenalty()) {
|
||||
MachineBasicBlock::iterator MBBI = prior(MBB.end());
|
||||
MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
|
||||
dl = MBBI->getDebugLoc();
|
||||
|
||||
// Insert terminator label
|
||||
@@ -199,7 +199,7 @@ void SPUFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
|
||||
void SPUFrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
MachineBasicBlock &MBB) const {
|
||||
MachineBasicBlock::iterator MBBI = prior(MBB.end());
|
||||
MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
|
||||
const SPUInstrInfo &TII =
|
||||
*static_cast<const SPUInstrInfo*>(MF.getTarget().getInstrInfo());
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
|
Reference in New Issue
Block a user