Add statistics counting to PHI-OPT
authorAndrew Pinski <apinski@marvell.com>
Thu, 10 Jun 2021 09:22:12 +0000 (02:22 -0700)
committerAndrew Pinski <apinski@marvell.com>
Fri, 18 Jun 2021 07:58:18 +0000 (00:58 -0700)
commit64b5da8f97122de895af1b13c5f5e103717858c6
treebebdc513269d58ef4740fb8855bae4c938e2a871
parent2f1686ff70b25fceb04ca2ffc0a450fb682913ef
Add statistics counting to PHI-OPT

This should have been done before I started to work on connecting
PHI-OPT to match-and-simplify to see quickly if we miss anything
but it is better late than never.
Anyways there was no statistics counting in PHI-OPT before so adding
it is the right thing to do.

OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

gcc/ChangeLog:

* tree-ssa-phiopt.c (replace_phi_edge_with_variable):
Add counting of how many times it is done.
(factor_out_conditional_conversion): Likewise.
(match_simplify_replacement): Likewise.
(value_replacement): Likewise.
(spaceship_replacement): Likewise.
(cond_store_replacement): Likewise.
(cond_if_else_store_replacement_1): Likewise.
(hoist_adjacent_loads): Likewise.
gcc/tree-ssa-phiopt.c