[Bug ipa/110057] Missed devirtualization opportunities

2024-05-27 Thread user202729 at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 user202729 changed: What|Removed |Added CC||user202729 at protonmail dot com ---

[Bug ipa/110057] Missed devirtualization opportunities

2024-04-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug ipa/110057] Missed devirtualization opportunities

2023-07-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #10 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:a47e615fbf9c6f4b24e5032df5d720b6bf9b63b5 commit r14-2853-ga47e615fbf9c6f4b24e5032df5d720b6bf9b63b5 Author: Ng YongXiang Date:

[Bug ipa/110057] Missed devirtualization opportunities

2023-07-02 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #9 from Ng YongXiang --- Would anyone be willing to provide some feedback regarding the attachment (https://gcc.gnu.org/bugzilla/attachment.cgi?id=55256=diff) that I have created? Thanks.

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-04 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #8 from Ng YongXiang --- Just added a patch to illustrate the array destruction issue. What do you think?

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-04 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 Ng YongXiang changed: What|Removed |Added CC||yongxiangng at gmail dot com ---

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-01 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #6 from Ng YongXiang --- That is interesting. Thanks for the reply. However, I'd argue that the 2 bugs mentioned are different from what I am proposing. The 2 bugs linked access virtual functions via ptr (delete p; val->f();) and

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-01 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #4 from Ng YongXiang --- Would anyone be able to direct me to which portion of the code is responsible for this threshold between len 2 & 3 array? Is this the responsibility of the c++ frontend? or is it still related to the

[Bug ipa/110057] Missed devirtualization opportunities

2023-06-01 Thread yongxiangng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #3 from Ng YongXiang --- I'm giving the example of an array for now, because gcc treatment of the destructor is inconsistent and depends on the length of the array. Clang on the other hand is able to devirtualize the destructor in

[Bug ipa/110057] Missed devirtualization opportunities

2023-05-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #2 from Andrew Pinski --- I am not 100% sure the all of the objects in the vector has to be in type of C. Because you could do some tricks dealing with inplacement new. >if this applies to raw arrays It does applies to raw arrays.

[Bug ipa/110057] Missed devirtualization opportunities

2023-05-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 --- Comment #1 from Andrew Pinski --- I don't think it should be checking ssa dump (which is the output right after going into ssa mode) but rather optimized.