Re: [PATCH] gimple ssa: Put SCCOPY logic into a class

2024-08-06 Thread Filip Kastl
On Tue 2024-08-06 15:14:32, Richard Biener wrote: > On Tue, 6 Aug 2024, Filip Kastl wrote: > > > Hello everybody, > > > > In pr113054[1] Andrew said that he doesn't like the 'dead_stmts' static > > variable I used when implementing the sccopy pass. We agreed that wrapping > > the relevant code f

Re: [PATCH] gimple ssa: Put SCCOPY logic into a class

2024-08-06 Thread Richard Biener
On Tue, 6 Aug 2024, Filip Kastl wrote: > Hello everybody, > > In pr113054[1] Andrew said that he doesn't like the 'dead_stmts' static > variable I used when implementing the sccopy pass. We agreed that wrapping > the relevant code from the pass in a class would be most likely the best > solution

[PATCH] gimple ssa: Put SCCOPY logic into a class

2024-08-06 Thread Filip Kastl
Hello everybody, In pr113054[1] Andrew said that he doesn't like the 'dead_stmts' static variable I used when implementing the sccopy pass. We agreed that wrapping the relevant code from the pass in a class would be most likely the best solution. Here is a patch that does exactly that. I waited