1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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.

llvm-svn: 298747
This commit is contained in:
Jessica Paquette 2017-03-24 23:00:21 +00:00
parent ea9e1e7ba5
commit f16f0e0e93

View 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