Re: [PATCH] Fix ICE in tree-ssa-strlen.c (PR tree-optimization/92691)

2019-11-28 Thread Richard Biener
On Thu, 28 Nov 2019, Jakub Jelinek wrote: > Hi! > > The various routines propagate to the caller whether > if (check_and_optimize_stmt (&gsi, &cleanup_eh, evrp.get_vr_values ())) > gsi_next (&gsi); > should do gsi_next or not (return false if e.g. gsi_remove is done, thus > gsi is a

[PATCH] Fix ICE in tree-ssa-strlen.c (PR tree-optimization/92691)

2019-11-27 Thread Jakub Jelinek
Hi! The various routines propagate to the caller whether if (check_and_optimize_stmt (&gsi, &cleanup_eh, evrp.get_vr_values ())) gsi_next (&gsi); should do gsi_next or not (return false if e.g. gsi_remove is done, thus gsi is already moved to the next stmt). handle_printf_call return