Skip to content

Commit

Permalink
[X86] Enable shrink-wrapping by default.
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D14156

rdar://problem/21118279


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253528 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Quentin Colombet committed Nov 19, 2015
1 parent ce103d4 commit 1fcad31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/Target/X86/X86FrameLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ class X86FrameLowering : public TargetFrameLowering {
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;
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/X86/tail-opts.ll
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ declare fastcc %union.tree_node* @default_conversion(%union.tree_node*) nounwind

; 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 {
Expand Down

0 comments on commit 1fcad31

Please sign in to comment.