From: Jessica Paquette Date: Fri, 24 Mar 2017 20:47:59 +0000 (+0000) Subject: [Outliner] Remove no red zone requirment for AArch64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee343dc1d15fc735e0b0ebc18af1ca44319f298f;p=llvm [Outliner] Remove no red zone requirment for AArch64 AArch64 doesn't require -mno-red-zone; stack fixups are sufficient here. This was unnecessarily copied over from the X86 target. (You can now outline with red zones! Yay!) Removing the requirement passes all Single/MultiSource tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64InstrInfo.cpp b/lib/Target/AArch64/AArch64InstrInfo.cpp index 24fc7d3c8b0..2868d8c4a22 100644 --- a/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -4280,7 +4280,7 @@ unsigned AArch64InstrInfo::getOutliningBenefit(size_t SequenceSize, } bool AArch64InstrInfo::isFunctionSafeToOutlineFrom(MachineFunction &MF) const { - return MF.getFunction()->hasFnAttribute(Attribute::NoRedZone); + return true; } AArch64GenInstrInfo::MachineOutlinerInstrType