[LLVMdev] Using CostModel to estimate machine cycles of each instruction

Chandler Carruth chandlerc at gmail.com
Mon Aug 4 10:15:25 PDT 2014


On Wed, Jul 16, 2014 at 7:10 PM, <donney.blue at gmail.com> wrote:

> There is CostModel.cpp since LLVM3, I am wondering if anyone can give me
> an concrete example on how to use this pass to estimate cycles used in a
> given IR file.
>

While others have given specific advice about using the cost model
analysis, note that it isn't actually measuring the expected cycles. At
best it is measuring the size / number of instructions in the LLVM IR.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140804/b46ee17b/attachment.html>


More information about the llvm-dev mailing list