From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 538 invoked by alias); 2 Jul 2002 02:51:39 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 518 invoked by uid 61); 2 Jul 2002 02:51:35 -0000 Date: Mon, 01 Jul 2002 19:51:00 -0000 Message-ID: <20020702025135.517.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, niemayer@isg.de, nobody@gcc.gnu.org From: sayle@gcc.gnu.org Reply-To: sayle@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, niemayer@isg.de, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/4046: redundant conditional branch X-SW-Source: 2002-07/txt/msg00039.txt.bz2 List-Id: Synopsis: redundant conditional branch State-Changed-From-To: analyzed->closed State-Changed-By: sayle State-Changed-When: Mon Jul 1 19:51:35 2002 State-Changed-Why: This problem has now been fixed on mainline CVS by the combination of the following two patches. We now generate only a single branch in the GNATS testcase. 2002-07-01 Roger Sayle PR opt/4046 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A, A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and B are truth values. 2002-06-15 Roger Sayle * fold-const.c (comparison_to_compcode): New function to convert an comparison TREE CODE into a bit-based representation. (compcode_to_comparison): New function to convert from this bit based representation back to a comparison TREE CODE. (fold_truthop): Simplify (x