From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31658 invoked by alias); 30 Apr 2008 15:13:44 -0000 Received: (qmail 31200 invoked by uid 48); 30 Apr 2008 15:12:57 -0000 Date: Wed, 30 Apr 2008 15:13:00 -0000 Message-ID: <20080430151257.31199.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/28685] Multiple comparisons are not simplified In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg02145.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2008-04-30 15:12 ------- A third variant is optimized by the ifcombine pass: int test__(int a, int b) { if (a < b) return 1; if (a == b) return 1; return 0; } in principle ifcombine could handle flow-less combining as well. I'll put that on my TODO. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-08-10 18:18:10 |2008-04-30 15:12:57 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28685