[LLVMdev] counting branch frequencies
alastairmurray42 at gmail.com
Fri Sep 7 11:25:38 PDT 2012
Do you mean is it possible to count branch taken/not-taken frequencies?
If so then in the svn version (i.e. not 3.1) there is
-profile-metadata-loader which sets branch weight metadata based on
profiling data (compile with -insert-edge-profiling and run your program
to generate that).
Within 3.1 there is -profile-loader which sets block execution counts
which can be used to infer branch taken/not-taken frequencies -- but the
whole interface is not as friendly.
On 07/09/12 10:46, Apala Guha wrote:
> Is there a way to count branch frequencies using LLVM infrastructure?
> Postdoctoral Scholar
> Department of Computer Science, University of Chicago
> Computation Institute, Argonne National Laboratory
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev