[PATCH] D25030: [XRay] Support for for tail calls for ARM no-Thumb

Serge Rogatch via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 11:00:10 PDT 2016


rSerge added a comment.

As I understood, x86_64 implementation for the tail calls reuses the trampoline of function exit tracing, but normal function exit tracing jumps into the trampoline, while tail call tracing calls the exit trampoline as a function. Because on ARM normal function exit tracing already calls the exit trampoline as a function, there was no need for additional switching between jump and call instruction in the patch. Thus for ARM, to reproduce the same functionality as for x86_64, it was sufficient to check whether the instruction is a tail call.


https://reviews.llvm.org/D25030





More information about the llvm-commits mailing list