https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99421

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
> Note that one can theoretically reduce also the .gcda file. I have an
> experimental pass for it in C-Vise and I will likely upstream it.

I've just added that here:
https://github.com/marxin/cvise/commit/ee714eeaa18f617d288dfee676d3f911a8edc2c8

with the commit, one can reduce the GCDA file:

$ ./cvise.py -n1 --pass-group=binary -c 'cp
~/Programming/gcc2/objdir/gcc/predict.i . &&
/home/marxin/Programming/gcc2/objdir/gcc/xgcc -B
/home/marxin/Programming/gcc2/objdir/gcc/ -fprofile-use -fselective-scheduling
-fselective-scheduling2 -fsel-sched-pipelining -g  -O3 -fno-strict-aliasing -c
predict.i 2>&1 | grep code_motion_process_successors' predict.gcda
...
00:00:00 INFO running 1 interestingness test in parallel
00:00:00 INFO INITIAL PASSES
00:00:00 INFO ===< GCDABinaryPass::None >===
00:00:00 INFO (30.0%, 8148 bytes)
00:00:01 INFO (63.9%, 4200 bytes)
00:00:01 INFO (71.0%, 3372 bytes)
00:00:02 INFO (89.8%, 1184 bytes)
00:00:02 INFO (92.2%, 904 bytes)
00:00:03 INFO (92.9%, 828 bytes)
00:00:03 INFO (96.1%, 448 bytes)
00:00:03 INFO MAIN PASSES
00:00:03 INFO Termination check: size was 448; now 448
00:00:03 INFO CLEANUP PASSES
00:00:03 INFO ===================== done ====================
===< PASS statistics >===
  pass name                                              time (s) time (%)  
worked   failed  total executed
  GCDABinaryPass::None                                       3.36    92.65     
  7       12              20

Runtime: 4 seconds

Reply via email to