[llvm] Do not use R12 for indirect tail calls with PACBTI (PR #82661)
Eleanor Bonnici via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 03:03:47 PDT 2024
================
@@ -228,6 +228,10 @@ def DontGenExecuteOnly : Predicate<"!Subtarget->genExecuteOnly()">;
def GenT1ExecuteOnly : Predicate<"Subtarget->genExecuteOnly() && "
"Subtarget->isThumb1Only() && "
"!Subtarget->hasV8MBaselineOps()">;
+let RecomputePerFunction = 1 in {
+ def TailCallNotR12 : Predicate<[{ MF->getInfo<ARMFunctionInfo>()->shouldSignReturnAddress(true) }]>;
+ def TailCall : Predicate<[{ !MF->getInfo<ARMFunctionInfo>()->shouldSignReturnAddress(true) }]>;
----------------
eleanor-arm wrote:
OK, thanks. I've changed the name.
https://github.com/llvm/llvm-project/pull/82661
More information about the llvm-commits
mailing list