PHI-OPT could be rewritten so that it uses fold_ternary (type, COND_EXPR, cond,
op1, op2) and that it could remove code which is already done in fold_ternary.

A patch like
http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00153.html
will work but it needs to be reworked for the changes which made it into 4.1.


-- 
           Summary: PHI-OPT could be rewritten so that is uses fold
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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

Reply via email to