mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +00:00
[AArch64] Enable shrink-wrapping by default.
Differential Revision: http://reviews.llvm.org/D14360 rdar://problem/20820748 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b7b529be0
commit
3fe74b8026
@ -60,6 +60,11 @@ public:
|
||||
|
||||
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
||||
RegScavenger *RS) const override;
|
||||
|
||||
/// Returns true if the target will correctly handle shrink wrapping.
|
||||
bool enableShrinkWrapping(const MachineFunction &MF) const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@ -522,10 +522,10 @@ bb1:
|
||||
|
||||
; CHECK-LABEL: realign_conditional2
|
||||
; Extra realignment in the prologue (performance issue).
|
||||
; CHECK: tbz {{.*}} .[[LABEL:.*]]
|
||||
; CHECK: sub x9, sp, #32 // =32
|
||||
; CHECK: and sp, x9, #0xffffffffffffffe0
|
||||
; CHECK: mov x19, sp
|
||||
; CHECK: tbz {{.*}} .[[LABEL:.*]]
|
||||
; Stack is realigned in a non-entry BB.
|
||||
; CHECK: sub [[REG:x[01-9]+]], sp, #64
|
||||
; CHECK: and sp, [[REG]], #0xffffffffffffffe0
|
||||
|
Loading…
x
Reference in New Issue
Block a user