> Hi,
> 
> I am trying to profile the frequency of each basic block of 
> SPEC 2000 benchmarks by compiling them using -fprofile-arcs and opt -O3.
> After running the benchmark, when I try to read "bb->count" while 
> compiling
> using "-fbranch-probabilities and -O3", I get "0" values for basic blocks
> which were known to execute for sure. Any clue as to where I am missing?
> Is "bb->count" is the right way to get the dynamic frequency in the second 
> pass?

It is.  You would need to provide more information for me to figure out
what is going wrong.  Of course the bb->count is initialized only after
profile is read in that at current mainline is pretty late in
compilation queue (after bp RTL pass), but this is going to change
hopefully at monday.

Honza
> 
> regards,
> Raj

Reply via email to