summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64CallLowering.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64CallLowering.cpp b/llvm/lib/Target/AArch64/AArch64CallLowering.cpp
index e97b329985a..ffca0e76b6d 100644
--- a/llvm/lib/Target/AArch64/AArch64CallLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64CallLowering.cpp
@@ -567,6 +567,12 @@ bool AArch64CallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
return false;
}
+ if (Info.IsTailCall && MF.getTarget().Options.GuaranteedTailCallOpt) {
+ // TODO: Until we lower all tail calls, we should fall back on this.
+ LLVM_DEBUG(dbgs() << "Cannot handle -tailcallopt yet.\n");
+ return false;
+ }
+
SmallVector<ArgInfo, 8> SplitArgs;
for (auto &OrigArg : Info.OrigArgs) {
splitToValueTypes(OrigArg, SplitArgs, DL, MRI, Info.CallConv);
OpenPOWER on IntegriCloud