aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorMomchil Velikov <momchil.velikov@arm.com>2022-04-15 12:19:02 +0100
committerMomchil Velikov <momchil.velikov@arm.com>2022-04-15 14:00:23 +0100
commit24c84bd2363a7195d928ce9beb568b66d8e64869 (patch)
treee43ef1ede3982c33c482ceaba4e915c452621d95 /clang/unittests/Basic/SourceManagerTest.cpp
parent5865a74755aceacaee624c66fcfac803d8c8ebf9 (diff)
downloadllvm-24c84bd2363a7195d928ce9beb568b66d8e64869.zip
llvm-24c84bd2363a7195d928ce9beb568b66d8e64869.tar.gz
llvm-24c84bd2363a7195d928ce9beb568b66d8e64869.tar.bz2
[AArch64] Async unwind - Fix MTE codegen emitting frame adjustments in a loop
When untagging the stack, the compiler may emit a sequence like: ``` .LBB0_1: st2g sp, [sp], #32 sub x8, x8, #32 cbnz x8, .LBB0_1 stg sp, [sp], #16 ``` These stack adjustments cannot be described by CFI instructions. This patch disables merging of SP update with untagging, i.e. makes the compiler use an additional scratch register (there should be plenty available at this point as we are in the epilogue) and generate: ``` mov x9, sp mov x8, #256 stg x9, [x9], #16 .LBB0_1: sub x8, x8, #32 st2g x9, [x9], #32 cbnz x8, .LBB0_1 add sp, sp, #272 ``` Merging is disabled only when we need to generate asynchronous unwind tables. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D114548
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions