Skip to content
Merged
5 changes: 4 additions & 1 deletion llvm/lib/Target/ARM/ARMSubtarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ void ARMSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
(Options.UnsafeFPMath || isTargetDarwin()))
HasNEONForFP = true;

if (isRWPI())
if (isRWPI() ||
(isTargetIOS() &&
ARM::parseArch(TargetTriple.getArchName()) == ARM::ArchKind::ARMV6K &&
TargetTriple.isOSVersionLT(3, 0)))
ReserveR9 = true;

// If MVEVectorCostFactor is still 0 (has not been set to anything else), default it to 2
Expand Down
Loading