Re: [PATCH] if-to-switch: properly allow side effects only for first condition

2022-06-30 Thread Richard Biener via Gcc-patches
On Thu, Jun 30, 2022 at 4:29 PM Martin Liška wrote: > > Properly allow side effects only for a first BB in a condition chain. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK > Thanks, > Martin > > PR tree-optimization/106126 > > gc

[PATCH] if-to-switch: properly allow side effects only for first condition

2022-06-30 Thread Martin Liška
Properly allow side effects only for a first BB in a condition chain. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR tree-optimization/106126 gcc/ChangeLog: * gimple-if-to-switch.cc (struct condition_info): Save