[llvm] r298734 - [Outliner] Remove no red zone requirment for AArch64

Jessica Paquette via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 13:47:59 PDT 2017


Author: paquette
Date: Fri Mar 24 15:47:59 2017
New Revision: 298734

URL: http://llvm.org/viewvc/llvm-project?rev=298734&view=rev
Log:
[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.


Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=298734&r1=298733&r2=298734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Fri Mar 24 15:47:59 2017
@@ -4280,7 +4280,7 @@ unsigned AArch64InstrInfo::getOutliningB
 }
 
 bool AArch64InstrInfo::isFunctionSafeToOutlineFrom(MachineFunction &MF) const {
-  return MF.getFunction()->hasFnAttribute(Attribute::NoRedZone);
+  return true;
 }
 
 AArch64GenInstrInfo::MachineOutlinerInstrType




More information about the llvm-commits mailing list