On Mär 29 2025, Vineet Gupta wrote: > diff --git a/gcc/config/riscv/riscv-vsetvl.cc > b/gcc/config/riscv/riscv-vsetvl.cc > index 0ac2538f596f..3b81e7f09924 100644 > --- a/gcc/config/riscv/riscv-vsetvl.cc > +++ b/gcc/config/riscv/riscv-vsetvl.cc > @@ -3391,7 +3391,6 @@ pre_vsetvl::emit_vsetvl () > edge_iterator eg_iterator; > FOR_EACH_EDGE (eg, eg_iterator, bb->cfg_bb ()->succs) > { > - gcc_assert (!(eg->flags & EDGE_ABNORMAL)); > if (dump_file) > { > fprintf ( > @@ -3400,6 +3399,11 @@ pre_vsetvl::emit_vsetvl () > eg->src->index, eg->dest->index); > footer_info.dump (dump_file, " "); > } > + if (eg->flags & EDGE_ABNORMAL) > + { > + fprintf (dump_file, "\n skipping EDGE_ABNORMAL\n");
This will crash if dump_file is NULL. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."