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.
2021-07-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/101467
* tree-vect-stmts.c (vect_gen_while): Properly guard
make_temp_ssa_name usage.
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;