[Bug tree-optimization/124142] Bad early-break vectorization of loop with integer modulo

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 17 13:28:21 GMT 2026


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org,
                   |                            |tnfchris at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-02-17

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think we are currently only considering trapping loads for the early break
condition evaluation, not any other possibly trapping operation.  Obviously
a division/modulo can never be used for an early break condition.

Tamar is probably quickest to spot the place where we evaluate early
break condition stmts for traps.


More information about the Gcc-bugs mailing list