diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-15 22:27:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-15 22:27:35 +0000 |
commit | 84ee6c40a82b6e79d3967f63726d54eec76018bb (patch) | |
tree | ce743718bccf91d465bb2be8fba9c0bce1e5f9fe /llvm/lib | |
parent | 0b11ef2ef01a4f29625068cbecadc73f219df505 (diff) | |
download | llvm-84ee6c40a82b6e79d3967f63726d54eec76018bb.zip llvm-84ee6c40a82b6e79d3967f63726d54eec76018bb.tar.gz llvm-84ee6c40a82b6e79d3967f63726d54eec76018bb.tar.bz2 |
Delete dead code.
llvm-svn: 181941
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index b9254d2..942df6c 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -763,15 +763,10 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { .addSym(FrameLabel); // Define the current CFA rule to use the provided offset. - if (StackSize) { - MachineLocation SPDst(MachineLocation::VirtualFP); - MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth); - MMI.addFrameMove(FrameLabel, SPDst, SPSrc); - } else { - MachineLocation SPDst(StackPtr); - MachineLocation SPSrc(StackPtr, stackGrowth); - MMI.addFrameMove(FrameLabel, SPDst, SPSrc); - } + assert(StackSize); + MachineLocation SPDst(MachineLocation::VirtualFP); + MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth); + MMI.addFrameMove(FrameLabel, SPDst, SPSrc); // Change the rule for the FramePtr to be an "offset" rule. MachineLocation FPDst(MachineLocation::VirtualFP, 2 * stackGrowth); @@ -959,16 +954,11 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { if (!HasFP && NumBytes) { // Define the current CFA rule to use the provided offset. - if (StackSize) { - MachineLocation SPDst(MachineLocation::VirtualFP); - MachineLocation SPSrc(MachineLocation::VirtualFP, - -StackSize + stackGrowth); - MMI.addFrameMove(Label, SPDst, SPSrc); - } else { - MachineLocation SPDst(StackPtr); - MachineLocation SPSrc(StackPtr, stackGrowth); - MMI.addFrameMove(Label, SPDst, SPSrc); - } + assert(StackSize); + MachineLocation SPDst(MachineLocation::VirtualFP); + MachineLocation SPSrc(MachineLocation::VirtualFP, + -StackSize + stackGrowth); + MMI.addFrameMove(Label, SPDst, SPSrc); } // Emit DWARF info specifying the offsets of the callee-saved registers. |