Re: [PATCH] c++: devirtualization of array destruction [PR110057]

2023-07-26 Thread Ng YongXiang via Gcc-patches
Hi Jason, I've made the following changes. 1. Add pr83054-2.C 2. Move the devirt tests to tree-ssa. 3. Remove dg do run for devirt tests 4. Add // PR c++/110057 5. Generate commit message with git gcc-commit-mklog 6. Check commit format with git gcc-verify Thanks! On Thu, Jul 27, 2023 at 12:30 

[PATCH] c++: devirtualization of array destruction [PR110057]

2023-07-26 Thread Ng YongXiang via Gcc-patches
r the poor formatting. It is my first time contributing. Do let me know if there's any stuff I've missed and feel free to modify the patch where you deem necessary. Thanks! On Wed, Jul 26, 2023 at 12:25 PM Jason Merrill wrote: > On 7/12/23 10:10, Ng YongXiang via Gcc-patches wrote: &g

[PATCH] - Devirtualization of array destruction (C++) - 110057

2023-07-12 Thread Ng YongXiang via Gcc-patches
wrote: > On Wed, 2023-07-12 at 16:58 +0800, Ng YongXiang via Gcc-patches wrote: > > I'm writing to seek for a review for an issue I filed some time ago. > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 . A proposed patch > is > > attached in the bug tracker as

Devirtualization of objects in array

2023-07-12 Thread Ng YongXiang via Gcc-patches
Hello, I'm writing to seek for a review for an issue I filed some time ago. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110057 . A proposed patch is attached in the bug tracker as well. The gist of the issue is that in an array, we know the underlying type of the object. An array must hold the t