llvm-mca 性能分析工具

 

 

定点数优化:性能成倍提升 - 知乎 (zhihu.com)

 

 

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)

 

 

posted @ 2023-09-27 19:57  sinferwu  阅读(279)  评论(0编辑  收藏  举报