From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10232 invoked by alias); 21 Sep 2005 16:06:01 -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 9474 invoked by uid 48); 21 Sep 2005 16:04:23 -0000 Date: Wed, 21 Sep 2005 16:06:00 -0000 From: "falk at debian dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050921160417.24001.falk@debian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/24001] New: Simple redundancy not eliminated X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg02657.txt.bz2 List-Id: For this code: int f(int *ptr, int t) { if (t) return *ptr; else return *ptr; } the jump is not eliminated: f: beq $17,$L2 ldl $0,0($16) ret $L2: ldl $0,0($16) ret This used to work with 2.95 (not sure whether that still counts as regression...), but not with 3.3, 3.4, 4.0, or 4.1.0 20050915. -- Summary: Simple redundancy not eliminated Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: falk at debian dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: alpha-linux-gnu GCC host triplet: alpha-linux-gnu GCC target triplet: alpha-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24001