[Bug java/15525] suggestion to enable cast elimination

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 27 20:55:00 GMT 2004


------- 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



More information about the Java-prs mailing list