[Bug java/15525] suggestion to enable cast elimination

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 18 21:08:00 GMT 2004


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



More information about the Java-prs mailing list