https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96451
--- Comment #5 from Kewen Lin <linkw at gcc dot gnu.org> --- Created attachment 49000 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49000&action=edit untested patch Just noticed the dbgcnt supports several intervals, if we want to count epilogue loop, we probably need to call dbgcnt in vect_do_peeling. One untested patch attached to show the idea.