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

            Bug ID: 117653
           Summary: vectorizable_induction doesn't record a loop mask or
                    len but uses vect_get_loop_len
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

This looks like a latent issue to me affecting both SLP and non-SLP.  It's also
one of the calls that calls vect_get_loop_len with factor == 0.

No testcase that ICEs or has wrong-code yet.  Interestingly we also pass gsi ==
NULL there, so it seems we _do_ expect factor == 0 to work for magic reasons.
We do not reject ncopies != 1 either.

Reply via email to