[llvm-dev] LLVM Static Instruction Count -stats -analyze -instcount not working

Craig Topper via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 9 13:45:58 PST 2019


I think you need to have Asserts enabled to get the -stats command line
switch to dump anything.

~Craig


On Wed, Jan 9, 2019 at 12:17 PM hameeza ahmed via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello,
> I need to count static instructions in llvm. I am using following command,
>
> opt -stats -analyze -instcount IR.ll
>
> But it is printing following lines;
>
> Printing analysis 'Counts the various types of Instructions' for function
> 'cluster':
> Printing analysis 'Counts the various types of Instructions' for function
> 'usage':
> Printing analysis 'Counts the various types of Instructions' for function
> 'main':
> Printing analysis 'Counts the various types of Instructions' for function
> 'find_nearest_point':
> Printing analysis 'Counts the various types of Instructions' for function
> 'euclid_dist_2':
> Printing analysis 'Counts the various types of Instructions' for function
> 'kmeans_clustering':
>
> Why it is not showing stats? Where I am doing mistake?
> Please help.
>
> Regards
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190109/e13e4863/attachment.html>


More information about the llvm-dev mailing list