This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/15525] suggestion to enable cast elimination
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 27 Aug 2004 20:55:55 -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 tromey at gcc dot gnu dot org 2004-08-27 20:55 -------
Another approach is not to call _Jv_CheckCast
but to instead turn that into explicit calls
to _Jv_IsInstanceOf and a call to something to
throw the correct exception. Then if we mark
_Jv_IsInstanceOf as "pure", the optimizers should
be able to eliminate the redundant call.
I have a patch to do this somewhere, I'll upload
it later.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15525