Use LLVM Machine Code Analyzer to analyze assembly performance on Arm
Introduction
Background
Run MCA with Arm assembly
Use MCA with Compiler Explorer
Next Steps
Use LLVM Machine Code Analyzer to analyze assembly performance on Arm
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
llvm-mca prints estimated cycles and hardware resource pressure for the add instructions. Use those metrics to identify possible stalls and the most stressed resources.Open
Compiler Explorer
, then select the
llvm-mca tool integration to analyze your code. You can choose compilers and tools without installing them locally.The report includes an estimated cycle count and a resource-usage breakdown without errors. If it’s missing or incomplete, verify that the input matches the example and rerun the analysis.
Save the provided instructions exactly as shown in
sum_test1.s. Make sure the registers match the example so the analysis reflects the intended sequence.Yes. Compiler Explorer includes
llvm-mca and lets you try compiler versions in the browser. For Neoverse V2 support, use LLVM 16 or later.