[compiler-rt] [XRay][RISC-V] Guard trampoline FP saves behind float ABI (PR #214390)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 13:50:04 PDT 2026
mshockwave wrote:
> XRay sleds sit at entry/exit, so even if a function uses FP internally per its -march, XRay doesn't need to save/restore FP registers
I think this sounds about right, if no floating point calling convention is used, fa0 ~ fa7 should be considered normal caller-saved registers.
> In my opinion, the XRay runtime and the instrumented program should share the same ABI
This reminds me one thing: currently the backend does require D and C extensions -- but it doesn't check if the codegen ABI matches that of the compiler-rt. Partly because the compiler doesn't know the ABI compiler-rt was built of.
https://github.com/llvm/llvm-project/pull/214390
More information about the llvm-commits
mailing list