We currently ICE when the locations include one without a setting insn.
Looking at cselib this seems to be a supported state so the following
arranges for this and dumps -1 as UID.
PR rtl-optimization/106859
* var-tracking.cc (val_store): Dump -1 as UID if setting_insn
is NULL.
struct elt_loc_list *l;
for (l = v->locs; l; l = l->next)
{
- fprintf (dump_file, "\n%i: ", INSN_UID (l->setting_insn));
+ fprintf (dump_file, "\n%i: ",
+ l->setting_insn ? INSN_UID (l->setting_insn) : -1);
print_inline_rtx (dump_file, l->loc, 0);
}
}