Re: [PATCH] if-to-switch: fix matching of negative conditions

2020-12-08 Thread Richard Biener via Gcc-patches
On December 8, 2020 2:35:35 PM GMT+01:00, "Martin Liška" wrote: >We must be careful which edge we follow for conditions >of a negative form (index != 2). > >Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > >Ready to be installed? Ok. Richard. >Thanks, >Martin > >gcc/Ch

[PATCH] if-to-switch: fix matching of negative conditions

2020-12-08 Thread Martin Liška
We must be careful which edge we follow for conditions of a negative form (index != 2). Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: PR tree-optimization/98182 * gimple-if-to-switch.cc (pass_if_to_sw