llvm-project
9e6fa395 - [BOLT][AArch64][instr] Consider targeting ARM64 CPUs without LSE support (#158738)

Commit
82 days ago
[BOLT][AArch64][instr] Consider targeting ARM64 CPUs without LSE support (#158738) `stadd` is only available in recent arm64 CPUs that have LSE support (like Cortex-A73 and Cortex-A75) and is not available on old arm64 CPUs (like Cortex-A53 and Cortex-A55). Devices could have a mixture of these two kinds of CPUs, for which we need to provide an option for BOLT to generate instrumentation sequence that emulates what `stadd` would do. The implementation puts counter increment into an injected helper function so we don't need to update CFG in the function that is being instrumented and instrumentation induced binary size increase will be smaller.
Author
Parents
Loading