https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96451
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 5 Aug 2020, linkw at gcc dot gnu.org wrote: > 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. We should count original scalar loops, not the loops we generate.