[Bug optimization/15346] New: [tree-ssa] combine two successive divisions

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Sun May 9 19:23:00 GMT 2004


int
foo (int a)
{
  int tem = a / 5;
  return tem / 3;
}

Note that if the expression is written without tem like a / 5 / 3,
then fold() can generate a / 15.

-- 
           Summary: [tree-ssa] combine two successive divisions
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: enhancement
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list