https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110740

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org,
                   |                            |rsandifo at gcc dot gnu.org

--- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> ---
Previously function vect_update_epilogue_niters has some code special-casing
the single scalar iteration epilogue:

-static bool
-vect_update_epilogue_niters (loop_vec_info epilogue_vinfo,
-                            unsigned HOST_WIDE_INT const_niters)
-{
-  /* Avoid wrap-around when computing const_niters - 1.  Also reject
-     using an epilogue loop for a single scalar iteration, even if
-     we could in principle implement that using partial vectors.  */
-  unsigned int gap_niters = LOOP_VINFO_PEELING_FOR_GAPS (epilogue_vinfo);
-  if (const_niters <= gap_niters + 1)
-    return false;

It's enabled without any costing consideration before, it sounds quite
reasonable so I think we still want it?

Reply via email to