[Bug optimization/15268] New: [tree-ssa] return statements are not combined on the tree level

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 3 17:19:00 GMT 2004


The following code (Derived from PR 15245) is not optimized to "return 0;" on the tree 
level.

char *f(char *x)
{
    char *ret = (char*)0;
    if( x > (char*)1 ) {
      if(x)
        return (char*)0;
    } 
    return ret;
}

-- 
           Summary: [tree-ssa] return statements are not combined on the
                    tree level
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code, memory-hog, compile-time-hog, TREE
          Severity: enhancement
          Priority: P2
         Component: 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=15268



More information about the Gcc-bugs mailing list