[llvm] [BOLT][AArch64] Add tests for unsupported conditional tailcalls (PR #139565)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Tue May 20 06:16:54 PDT 2025


paschalis-mpeis wrote:

Hey Maksim,

I don't think there are any consequences. Any branch that doesn't link to LR isn't primarily intended for calls.
Since it's only a hint, optimizations can still use it for tail calls.

All BR, B, B.cond, CBZ/CBNZ, and TBZ/TBNZ include this hint.
BL uses a similar note to hint that it's for calls. I suppose nothing prevents writing assembly that uses BL and then overwriting LR.

BLR wording is slightly stricter. I've raised this internally to see if we need to improve consistency there.


https://github.com/llvm/llvm-project/pull/139565


More information about the llvm-commits mailing list