Open andyzhaozhenyu opened 1 month ago
@andyzhaozhenyu andyzhaozhenyu Can you share the command lines and the output of your invocation of perf
and create_gcov
?
gcc -g -O2 -o pmu test.c -fauto-profile=pmu.gcov -fdump-ipa-afdo-details
/home/zzy/used/autofdo/autofdo-0.19/build/create_gcov --binary=baseline --profile=pmu.data --gcov=pmu.gcov --gcov_version=2 --use_lbr=0
And here is the output for dump_gcov
@andyzhaozhenyu I tried this with my version of bubble_sort and GCC12 and I see that the counts are propagated correctly. Can you share your test.c and full output of gcc -g -O2 -o pmu test.c -fauto-profile=pmu.gcov -fdump-ipa-afdo-details
?
I tried to use Autofdo on GCC12 to optimize bubble_sort, but I checked the cfg. The count for basic block is not correct.![屏幕截图 2024-05-13 215538](https://github.com/google/autofdo/assets/70983241/6af56cb2-5311-4d52-8d20-709f1acc8bdd)