hameeza ahmed via llvm-dev
2019-Jan-09 20:17 UTC
[llvm-dev] LLVM Static Instruction Count -stats -analyze -instcount not working
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190110/f9c140b4/attachment.html>
Craig Topper via llvm-dev
2019-Jan-09 21:45 UTC
[llvm-dev] LLVM Static Instruction Count -stats -analyze -instcount not working
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>