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

--- Comment #67 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Martin Jambor from comment #66)
> Created attachment 57750 [details]
> Patch comparing jump functions
> 
> I'm testing this patch.  (Not sure how to best check that it does not
> inadvertently pessimize ICF too much, except for ICF testcases.)

Bet modify the patch slightly (for testing only), so instead of those 3
return_false_with_msg it would just set some flag somewhere that the pair is
not ICF optimizable, then after the early return false in sem_function::merge
check that flag
and log into some /tmp/ file using appending if the ICF merge would be done and
the flag wasn't set, or if the ICF merge wouldn't be done (and in that case
return false too), bootstrap/regtest with such patch, plus build a few other
packages (firefox, libreoffice) and then get statistics from the log file on
what percentage of ICF folding it now prevents.

Reply via email to