[llvm] r298747 - [Outliner] Revert r298734.
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 24 16:00:22 PDT 2017
Author: paquette
Date: Fri Mar 24 18:00:21 2017
New Revision: 298747
URL: http://llvm.org/viewvc/llvm-project?rev=298747&view=rev
Log:
[Outliner] Revert r298734.
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.
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=298747&r1=298746&r2=298747&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Fri Mar 24 18:00:21 2017
@@ -4280,7 +4280,7 @@ unsigned AArch64InstrInfo::getOutliningB
}
bool AArch64InstrInfo::isFunctionSafeToOutlineFrom(MachineFunction &MF) const {
- return true;
+ return MF.getFunction()->hasFnAttribute(Attribute::NoRedZone);
}
AArch64GenInstrInfo::MachineOutlinerInstrType
More information about the llvm-commits
mailing list