From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12025 invoked by alias); 23 Sep 2009 08:50:46 -0000 Received: (qmail 11974 invoked by uid 48); 23 Sep 2009 08:50:36 -0000 Date: Wed, 23 Sep 2009 08:50:00 -0000 Message-ID: <20090923085036.11973.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/41442] missed optimization for boolean expression 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: 2009-09/txt/msg02141.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2009-09-23 08:50 ------- You wound need to enable PRE implement code hoisting to remove the redundant load (or write the condition as p2->next || (p1->next && !p2->next)). PRE is run too late to help generate optimal code though as ifcombine runs before it and ifcombine wouldn't deal with the if-converted form that is present then. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-09-23 08:50:35 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41442