Add stats to simple_dce_from_worklist
commit3b7eecca20bcb05e0220b3d012df012902a23534
authorAndrew Pinski <apinski@marvell.com>
Tue, 2 May 2023 07:08:19 +0000 (2 00:08 -0700)
committerAndrew Pinski <apinski@marvell.com>
Wed, 3 May 2023 18:26:38 +0000 (3 11:26 -0700)
tree603613fa8a5c3e1f867eb1829eb6d758ebe96736
parent2b8a27634f5d28e3e7c4a08bf065f2daada7aed2
Add stats to simple_dce_from_worklist

While looking to move substitute_and_fold_engine
over to use simple_dce_from_worklist, I noticed
that we don't record the stats of the removed stmts/phis.
So this does that.

OK? Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* tree-ssa-dce.cc (simple_dce_from_worklist): Record
stats on removed number of statements and phis.
gcc/tree-ssa-dce.cc