Re: [PATCH] Fix ICE in gimple-ssa-warn-alloca.c (PR tree-optimization/79972)

2017-03-09 Thread Richard Biener
On Thu, 9 Mar 2017, Jakub Jelinek wrote: > Hi! > > get_range_info must be only called on SSA_NAMEs (that don't have > POINTER_TYPE_P type), but the first instance of this pass is before > into ssa so we can see VAR_DECLs in some cases instead of SSA_NAMEs. > There is on the other side no point te

[PATCH] Fix ICE in gimple-ssa-warn-alloca.c (PR tree-optimization/79972)

2017-03-09 Thread Jakub Jelinek
Hi! get_range_info must be only called on SSA_NAMEs (that don't have POINTER_TYPE_P type), but the first instance of this pass is before into ssa so we can see VAR_DECLs in some cases instead of SSA_NAMEs. There is on the other side no point testing that range_type is non-zero (== not VR_UNDEFINED