Re: [PATCH] Fix ICE during gimple resimplification (PR tree-optimization/92401)

2019-11-08 Thread Richard Biener
On November 9, 2019 1:07:18 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >On the following testcase we ICE, because gimple_resimplify3 is called >on a CONSTRUCTOR with 3 elements, which is fine, but it calls >fold_ternary >which works only on expression codes with TREE_CODE_LENGTH of 3. > >Fixed

[PATCH] Fix ICE during gimple resimplification (PR tree-optimization/92401)

2019-11-08 Thread Jakub Jelinek
Hi! On the following testcase we ICE, because gimple_resimplify3 is called on a CONSTRUCTOR with 3 elements, which is fine, but it calls fold_ternary which works only on expression codes with TREE_CODE_LENGTH of 3. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for