Re: [PATCH] Fix switchconv ICE (PR tree-optimization/84740)

2018-03-07 Thread Richard Biener
On March 7, 2018 10:51:08 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >On the following testcase info.final_bb has only one PHI, the virtual >one, >so info.phi_count is 0. For info.phi_count == 0, we don't really >create any >arrays etc.; just returning early (before create_temp_arrays) would >work

[PATCH] Fix switchconv ICE (PR tree-optimization/84740)

2018-03-07 Thread Jakub Jelinek
Hi! On the following testcase info.final_bb has only one PHI, the virtual one, so info.phi_count is 0. For info.phi_count == 0, we don't really create any arrays etc.; just returning early (before create_temp_arrays) would work, but would leave the useless GIMPLE_SWITCH in the IL and it would tak