]> granicus.if.org Git - llvm/commitdiff
[Outliner] Revert r298734.
authorJessica Paquette <jpaquette@apple.com>
Fri, 24 Mar 2017 23:00:21 +0000 (23:00 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 24 Mar 2017 23:00:21 +0000 (23:00 +0000)
When I tested r298734, I thought that red zones were enabled by default like in
X86. Since red zones are behind a flag on AArch64 the testing wasn't true.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298747 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64InstrInfo.cpp

index 2868d8c4a2287b8e74b5f467c4a7bcbd2630098a..24fc7d3c8b0e2f73152327cb4558207dd4361da9 100644 (file)
@@ -4280,7 +4280,7 @@ unsigned AArch64InstrInfo::getOutliningBenefit(size_t SequenceSize,
 }
 
 bool AArch64InstrInfo::isFunctionSafeToOutlineFrom(MachineFunction &MF) const {
-  return true;
+  return MF.getFunction()->hasFnAttribute(Attribute::NoRedZone);
 }
 
 AArch64GenInstrInfo::MachineOutlinerInstrType