https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115410

--- Comment #2 from user202729 <user202729 at protonmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> I am not so sure. Many times the comparison becomes a string comparison and
> not comparing the vtable.

That's my point. Pointer comparison is faster than string comparison, and it
should hold that the typeid are equal iff the types are equal iff the vptr are
equal, so the optimization should be valid.

Reply via email to