From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23351 invoked by alias); 18 May 2004 21:08:23 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 23333 invoked by uid 48); 18 May 2004 21:08:22 -0000 Date: Tue, 18 May 2004 21:08:00 -0000 Message-ID: <20040518210822.23332.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20040518204228.15525.tromey@gcc.gnu.org> References: <20040518204228.15525.tromey@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/15525] suggestion to enable cast elimination X-Bugzilla-Reason: CC X-SW-Source: 2004-q2/txt/msg00113.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-18 21:08 ------- Confirmed. Actually we generate the following right now for the code you gave which means we do not remove the check at all :( T.0 = _Jv_IsInstanceOf (x, &foo.class); T.1 = !T.0; if (T.1) { return 0B; } else { } { struct foo * self; T.2 = _Jv_CheckCast (&foo.class, x); self = T.2; return self; } -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |missed-optimization Last reconfirmed|0000-00-00 00:00:00 |2004-05-18 21:08:20 date| | Version|unknown |3.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15525