]> granicus.if.org Git - llvm/commitdiff
[Outliner] Remove no red zone requirment for AArch64
authorJessica Paquette <jpaquette@apple.com>
Fri, 24 Mar 2017 20:47:59 +0000 (20:47 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 24 Mar 2017 20:47:59 +0000 (20:47 +0000)
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

lib/Target/AArch64/AArch64InstrInfo.cpp

index 24fc7d3c8b0e2f73152327cb4558207dd4361da9..2868d8c4a2287b8e74b5f467c4a7bcbd2630098a 100644 (file)
@@ -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