Re: [PATCH] Fix ICE in vrp on aarch64 (PR tree-optimization/92452)

2019-11-11 Thread Richard Biener
On Mon, 11 Nov 2019, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs on aarch64-linux. The problem is that maxbound > is POLY_INT_CST, eltsize is INTEGER_CST, but int_const_binop for > TRUNC_DIV_EXPR returns NULL_TREE as it can't simplify it to something > usable and we later try to M

[PATCH] Fix ICE in vrp on aarch64 (PR tree-optimization/92452)

2019-11-11 Thread Jakub Jelinek
Hi! The following testcase ICEs on aarch64-linux. The problem is that maxbound is POLY_INT_CST, eltsize is INTEGER_CST, but int_const_binop for TRUNC_DIV_EXPR returns NULL_TREE as it can't simplify it to something usable and we later try to MINUS_EXPR the NULL_TREE. Fixed thusly, tested using cr