Re: [PATCH] vect: Init inside_cost in vect_model_reduction_cost

2021-03-24 Thread Jeff Law via Gcc-patches
On 3/25/2021 12:04 AM, Kewen.Lin via Gcc-patches wrote: Hi, I happened to find this possible use of uninitialized inside_cost during checking the cost for reduction. Before r11-6587, all the if/else if/else arms will assign values to inside_cost, so it was fine. But from r11-6587 the else pa

[PATCH] vect: Init inside_cost in vect_model_reduction_cost

2021-03-24 Thread Kewen.Lin via Gcc-patches
Hi, I happened to find this possible use of uninitialized inside_cost during checking the cost for reduction. Before r11-6587, all the if/else if/else arms will assign values to inside_cost, so it was fine. But from r11-6587 the else path won't assign any more, it leads the inside_cost possibly