Re: [PATCH] if-to-switch: fix also virtual phis

2021-01-13 Thread Richard Biener via Gcc-patches
On Wed, Jan 13, 2021 at 9:30 AM Martin Liška wrote: > > On 1/12/21 4:14 PM, Richard Biener wrote: > > ) On Tue, Jan 12, 2021 at 3:50 PM Martin Liška wrote: > >> > >> Hello. > >> > >> As seen in the PR, we need to fix also virtual PHIs, otherwise > >> TODO_cfg will skip edges for a missing PHI arg

Re: [PATCH] if-to-switch: fix also virtual phis

2021-01-13 Thread Martin Liška
, 12 Jan 2021 13:40:44 +0100 Subject: [PATCH] if-to-switch: fix also virtual phis gcc/ChangeLog: PR tree-optimization/98455 * gimple-if-to-switch.cc (condition_info::record_phi_mapping): Record also virtual PHIs. (pass_if_to_switch::execute): Return TODO_cleanup_cfg only conditionally. gcc/te

Re: [PATCH] if-to-switch: fix also virtual phis

2021-01-12 Thread Richard Biener via Gcc-patches
) On Tue, Jan 12, 2021 at 3:50 PM Martin Liška wrote: > > Hello. > > As seen in the PR, we need to fix also virtual PHIs, otherwise > TODO_cfg will skip edges for a missing PHI argument. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK - doe

[PATCH] if-to-switch: fix also virtual phis

2021-01-12 Thread Martin Liška
Hello. As seen in the PR, we need to fix also virtual PHIs, otherwise TODO_cfg will skip edges for a missing PHI argument. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: PR tree-optimization/98455 * g