My previous change to vect_gen_while introduced paths which call make_temp_ssa_name with a NULL name which isn't supported. The following fixes that.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2021-07-16 Richard Biener <rguent...@suse.de> PR tree-optimization/101467 * tree-vect-stmts.c (vect_gen_while): Properly guard make_temp_ssa_name usage. --- gcc/tree-vect-stmts.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index ec82acb8db9..0ef46962618 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -11999,7 +11999,11 @@ vect_gen_while (gimple_seq *seq, tree mask_type, tree start_index, gcall *call = gimple_build_call_internal (IFN_WHILE_ULT, 3, start_index, end_index, build_zero_cst (mask_type)); - tree tmp = make_temp_ssa_name (mask_type, NULL, name); + tree tmp; + if (name) + tmp = make_temp_ssa_name (mask_type, NULL, name); + else + tmp = make_ssa_name (mask_type); gimple_call_set_lhs (call, tmp); gimple_seq_add_stmt (seq, call); return tmp; -- 2.26.2