[Bug tree-optimization/45791] Missed devirtualization

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 14 23:17:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45791

--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-14 23:17:13 UTC ---
Eh,
wanted to paste:
  D.2236_10 = (int (*__vtbl_ptr_type) (void)) f;
  OBJ_TYPE_REF(D.2236_10;D.2215_3->2) (D.2215_3);
I told ccp should IMO optimize it, but doesn't. I guess it is because VRP1
works out the constant but then it doesn't know about OBJ_TYPE_REF folding.



More information about the Gcc-bugs mailing list