[llvm-bugs] [Bug 24588] aarch64 backend uses x18 on iOS
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 7 01:13:36 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=24588
Fangrui Song <i at maskray.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
CC| |i at maskray.me
Status|NEW |RESOLVED
--- Comment #1 from Fangrui Song <i at maskray.me> ---
Fixed by r253102 AArch64: Default AArch64Subtarget::ReserveX18 to true on
darwin
--- a/lib/Target/AArch64/AArch64Subtarget.cpp
+++ b/lib/Target/AArch64/AArch64Subtarget.cpp
@@ -53,8 +53,9 @@ AArch64Subtarget::AArch64Subtarget(const Triple &TT, const
std::string &CPU,
: AArch64GenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
HasV8_1aOps(false), HasFPARMv8(false), HasNEON(false), HasCrypto(false),
HasCRC(false), HasPerfMon(false), HasZeroCycleRegMove(false),
- HasZeroCycleZeroing(false), StrictAlign(false), ReserveX18(false),
- IsLittle(LittleEndian), CPUString(CPU), TargetTriple(TT),
FrameLowering(),
+ HasZeroCycleZeroing(false), StrictAlign(false),
+ ReserveX18(TT.isOSDarwin()), IsLittle(LittleEndian), CPUString(CPU),
+ TargetTriple(TT), FrameLowering(),
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190707/04299734/attachment-0001.html>
More information about the llvm-bugs
mailing list