We miss an opportunity to remove the bounds checking code in the following case (this 
shows up a 
huge amount in libjava and other code):
class t
{
  void f(int a[])
  {
     for(int i=0;i<a.length;i++)
       a[i] = 0;
  }
}

-- 
           Summary: Missed opportunity for removing bounds checking
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to