aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2018-10-23 16:10:18 -0700
committerPeter Collingbourne <pcc@google.com>2018-10-23 20:08:10 -0700
commit7f31e415905b6c25341ee8335bce2983e9d11018 (patch)
tree4d012bd4a0a579893fb5ad27b5f50950a72745e7 /lib
parent27f430f6f185b232c7fbc6daebc166e3d8219f42 (diff)
downloadllvm-7f31e415905b6c25341ee8335bce2983e9d11018.tar.gz
Start reserving x18 by default on Android targets.
This is a backport of LLVM r340889 to the external/llvm tree, the goal being to make RenderScript's JITed code reserve x18 as well. Change-Id: I1225f7d489387a39707d6888dc5e5d4d5b49b460
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/AArch64/AArch64Subtarget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/AArch64/AArch64Subtarget.cpp b/lib/Target/AArch64/AArch64Subtarget.cpp
index 7dd8ccbe6c25..d1ec642f1518 100644
--- a/lib/Target/AArch64/AArch64Subtarget.cpp
+++ b/lib/Target/AArch64/AArch64Subtarget.cpp
@@ -88,8 +88,9 @@ void AArch64Subtarget::initializeProperties() {
AArch64Subtarget::AArch64Subtarget(const Triple &TT, const std::string &CPU,
const std::string &FS,
const TargetMachine &TM, bool LittleEndian)
- : AArch64GenSubtargetInfo(TT, CPU, FS), ReserveX18(TT.isOSDarwin()),
- IsLittle(LittleEndian), CPUString(CPU), TargetTriple(TT), FrameLowering(),
+ : AArch64GenSubtargetInfo(TT, CPU, FS),
+ ReserveX18(TT.isOSDarwin() || TT.isAndroid()), IsLittle(LittleEndian),
+ CPUString(CPU), TargetTriple(TT), FrameLowering(),
InstrInfo(initializeSubtargetDependencies(FS)), TSInfo(),
TLInfo(TM, *this), GISel() {}