Example:
int f(int a, int b)
{
  return (a|9)&9;
}

int f1(int a, int b)
{
  return (a|9)&9;
}


This is folded at the rtl level but not at the tree level.

-- 
           Summary: Fold does not fold (a|b)&b to b likewise for (a&b) | b
                    to b
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: middle-end
        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
OtherBugsDependingO 19986
             nThis:


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

Reply via email to