Re: [PATCH] Fix optimize_range_tests_var_bound reassoc ICE (PR tree-optimization/77929)

2016-10-11 Thread Richard Biener
On October 11, 2016 11:59:23 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >The following testcase ICEs, because ranges[i].exp is x < y >with boolean type, but (*ops)[ranges[i].idx] is that result cast >to int and the code didn't take into account possible casts that >init_range_entry looks through.

[PATCH] Fix optimize_range_tests_var_bound reassoc ICE (PR tree-optimization/77929)

2016-10-11 Thread Jakub Jelinek
Hi! The following testcase ICEs, because ranges[i].exp is x < y with boolean type, but (*ops)[ranges[i].idx] is that result cast to int and the code didn't take into account possible casts that init_range_entry looks through. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok