Hi, Does LLVM define some performance model for each type of instructions? I mean the cost or latency for executing each type of instruction. Thanks a lot! Best, Linhai
Jonas Wagner
2014-Aug-19 10:40 UTC
[LLVMdev] Does LLVM have Instruction Performance Model?
Hi, there is a rather basic CostModelAnalysis <http://llvm.org/docs/doxygen/html/CostModel_8cpp_source.html>. It gives you a cost estimate, where higher numbers generally mean less throughput. See also other discussions on this list regarding how to use it [1]. This is the only model I'm aware of. I'd be interested myself whether there are others. Cheers, Jonas [1]: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/thread.html#74836 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140819/cf7d7706/attachment.html>
On 08/19/2014 05:40 AM, Jonas Wagner wrote:> Hi, > > there is a rather basic CostModelAnalysis > <http://llvm.org/docs/doxygen/html/CostModel_8cpp_source.html>. > > It gives you a cost estimate, where higher numbers generally mean less > throughput. See also other discussions on this list regarding how to > use it [1]. > > This is the only model I'm aware of. I'd be interested myself whether > there are others. > > Cheers, > Jonas > > [1]: > http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/thread.html#74836 >Thanks a lot! Let me take a look at these! Best, Linhai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140819/d38d8c1c/attachment.html>