From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10734 invoked by alias); 20 Nov 2009 13:12:54 -0000 Received: (qmail 10681 invoked by uid 48); 20 Nov 2009 13:12:34 -0000 Date: Fri, 20 Nov 2009 13:12:00 -0000 Message-ID: <20091120131234.10680.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/42117] VRP should do if-conversion 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-11/txt/msg01684.txt.bz2 ------- Comment #1 from rguenth at gcc dot gnu dot org 2009-11-20 13:12 ------- Confirmed. We do see x_2: [0, 1] EQUIVALENCES: { x_3(D) } (1 elements) y_11: [0, 1] EQUIVALENCES: { y_5(D) } (1 elements) but have no code that actually makes use of this information in : if (x_3(D) != 0) goto ; else goto ; : if (y_5(D) != 0) goto ; else goto ; : : # D.2047_1 = PHI <0(6), -1(3), -1(2), 1(5)> return D.2047_1; which we want to if-convert to : tmp = x_3 & y_5; : # D.2047_1 = PHI but there is no code in VRP that does if-conversion. -- 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-11-20 13:12:34 date| | Summary|VRP fails to get rid of |VRP should do if-conversion |compares | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42117