llvm-mca - LLVM Machine Code Analyzer — LLVM 18.0.0git documentation
llvm-mca is a performance analysis tool that uses information available in LLVM (e.g. scheduling models) to statically measure the performance of machine code in a specific CPU.
Performance is measured in terms of throughput as well as processor resource consumption. The tool currently works for processors with a backend for which there is a scheduling model available in LLVM.
The main goal of this tool is not just to predict the performance of the code when run on the target, but also help with diagnosing potential performance issues.
Given an assembly code sequence, llvm-mca estimates the Instructions Per Cycle (IPC), as well as hardware resource pressure. The analysis and reporting style were inspired by the IACA tool from Intel.
Static Code Analysis // 谭邵杰的计算机奇妙旅程 (ustc.edu.cn)
LLVM-MCA: docs // 谭邵杰的计算机奇妙旅程 (ustc.edu.cn)
标签:code,llvm,性能,mca,LLVM,performance,tool From: https://www.cnblogs.com/sinferwu/p/17734198.html