[llvm] r253528 - [X86] Enable shrink-wrapping by default.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 16:38:00 PST 2015
Author: qcolombet
Date: Wed Nov 18 18:38:00 2015
New Revision: 253528
URL: http://llvm.org/viewvc/llvm-project?rev=253528&view=rev
Log:
[X86] Enable shrink-wrapping by default.
Differential Revision: http://reviews.llvm.org/D14156
rdar://problem/21118279
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.h
llvm/trunk/test/CodeGen/X86/tail-opts.ll
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.h?rev=253528&r1=253527&r2=253528&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.h (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.h Wed Nov 18 18:38:00 2015
@@ -143,6 +143,11 @@ public:
MachineBasicBlock::iterator I,
uint64_t Amount) const;
+ /// Returns true if the target will correctly handle shrink wrapping.
+ bool enableShrinkWrapping(const MachineFunction &MF) const override {
+ return true;
+ }
+
/// Wraps up getting a CFI index and building a MachineInstr for it.
void BuildCFI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
DebugLoc DL, MCCFIInstruction CFIInst) const;
Modified: llvm/trunk/test/CodeGen/X86/tail-opts.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tail-opts.ll?rev=253528&r1=253527&r2=253528&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tail-opts.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tail-opts.ll Wed Nov 18 18:38:00 2015
@@ -277,8 +277,8 @@ declare fastcc %union.tree_node* @defaul
; CHECK-LABEL: foo:
; CHECK: callq func
-; CHECK-NEXT: .LBB4_2:
; CHECK-NEXT: popq
+; CHECK-NEXT: .LBB4_2:
; CHECK-NEXT: ret
define void @foo(i1* %V) nounwind {
More information about the llvm-commits
mailing list