From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9788 invoked by alias); 1 Sep 2005 02:15:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9758 invoked by uid 48); 1 Sep 2005 02:15:22 -0000 Date: Thu, 01 Sep 2005 02:15:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050901021518.23670.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/23670] New: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00021.txt.bz2 List-Id: 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