From ec7f4231cb7c26d5f52375617a9a73a1e79f3857 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 16 May 2013 03:34:58 +0000 Subject: [PATCH] Removed dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181975 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCFrameLowering.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/Target/PowerPC/PPCFrameLowering.cpp b/lib/Target/PowerPC/PPCFrameLowering.cpp index 1f0c3c4b5d8..3950132a721 100644 --- a/lib/Target/PowerPC/PPCFrameLowering.cpp +++ b/lib/Target/PowerPC/PPCFrameLowering.cpp @@ -523,14 +523,10 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF) const { BuildMI(MBB, MBBI, dl, TII.get(PPC::PROLOG_LABEL)).addSym(FrameLabel); // Show update of SP. - if (NegFrameSize) { - MachineLocation SPDst(MachineLocation::VirtualFP); - MachineLocation SPSrc(MachineLocation::VirtualFP, NegFrameSize); - MMI.addFrameMove(FrameLabel, SPDst, SPSrc); - } else { - MachineLocation SP(isPPC64 ? PPC::X31 : PPC::R31); - MMI.addFrameMove(FrameLabel, SP, SP); - } + assert(NegFrameSize); + MachineLocation SPDst(MachineLocation::VirtualFP); + MachineLocation SPSrc(MachineLocation::VirtualFP, NegFrameSize); + MMI.addFrameMove(FrameLabel, SPDst, SPSrc); if (HasFP) { MachineLocation FPDst(MachineLocation::VirtualFP, FPOffset); -- 2.34.1