This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-fprofile-arcs
- From: Rajkishore Barik <rajbarik at in dot ibm dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Mon, 18 Jul 2005 10:14:46 -0400
- Subject: -fprofile-arcs
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?
regards,
Raj