Re: [PATCH] Add stats to simple_dce_from_worklist

2023-05-02 Thread Richard Biener via Gcc-patches
On Wed, May 3, 2023 at 1:15 AM Andrew Pinski via Gcc-patches wrote: > > 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-linu

[PATCH] Add stats to simple_dce_from_worklist

2023-05-02 Thread Andrew Pinski via Gcc-patches
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): Reco