<div dir="ltr">I think you need to have Asserts enabled to get the -stats command line switch to dump anything.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019 at 12:17 PM hameeza ahmed via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>I need to count static instructions in llvm. I am using following command,</div><div><br></div><div>opt -stats -analyze -instcount IR.ll</div><div><br></div><div>But it is printing following lines;</div><div><br></div><div>Printing analysis 'Counts the various types of Instructions' for function 'cluster':<br>Printing analysis 'Counts the various types of Instructions' for function 'usage':<br>Printing analysis 'Counts the various types of Instructions' for function 'main':<br>Printing analysis 'Counts the various types of Instructions' for function 'find_nearest_point':<br>Printing analysis 'Counts the various types of Instructions' for function 'euclid_dist_2':<br>Printing analysis 'Counts the various types of Instructions' for function 'kmeans_clustering':<br></div><div><br></div><div>Why it is not showing stats? Where I am doing mistake?</div><div>Please help.</div><div><br></div><div>Regards<br></div><div><br></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>