[BOLT][Instrumentation] Preserve red zone for functions with tail calls only
authorAmir Ayupov <amir.aupov@gmail.com>
Fri, 3 Mar 2023 19:58:59 +0000 (11:58 -0800)
committerAmir Ayupov <aaupov@fb.com>
Fri, 3 Mar 2023 20:02:17 +0000 (12:02 -0800)
commit1e1dfbb94a20d81693176d885b5f773072bf0786
tree8e6632a341d857e14f13b094611526bb085608db
parent96ff21243eba3873e0da814baa9a7ff19b748b7c
[BOLT][Instrumentation] Preserve red zone for functions with tail calls only

Allow a function with tail calls only to clobber its red zone.

Fixes https://github.com/llvm/llvm-project/issues/61114.

Reviewed By: #bolt, yota9

Differential Revision: https://reviews.llvm.org/D145202
bolt/lib/Passes/Instrumentation.cpp
bolt/test/runtime/X86/instrumentation-tail-call.s [new file with mode: 0644]