This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/15525] suggestion to enable cast elimination
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2004 21:08:22 -0000
- Subject: [Bug java/15525] suggestion to enable cast elimination
- References: <20040518204228.15525.tromey@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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