[Bug tree-optimization/54013] New: Loop with control flow not vectorized

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 18 11:09:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54013

             Bug #: 54013
           Summary: Loop with control flow not vectorized
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
            Blocks: 53947


ICC manages to vectorize the following loop which happens in Polyhedron
mp_prop_design.

int foo (float x, float *tab)
{
  int i;
  for (i = 2; i < 45; ++i)
    if (x < tab[i])
      break;
  return i - 1;
}



More information about the Gcc-bugs mailing list