Re: [PATCH] if-to-switch: remove memory leaks

2021-01-08 Thread Richard Biener via Gcc-patches
On Fri, Jan 8, 2021 at 3:27 PM Martin Liška wrote: > > The patch removes some memory leaks spotted by valgrind. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK. Richard. > Thanks, > Martin > > > gcc/ChangeLog: > > * gimple-if-to-s

[PATCH] if-to-switch: remove memory leaks

2021-01-08 Thread Martin Liška
The patch removes some memory leaks spotted by valgrind. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: * gimple-if-to-switch.cc (struct condition_info): Use auto_var. (if_chain::is_beneficial): Delet