Re: [PATCH] switch-conversion: Mark CSWTCH as mergeable [PR120451]

2025-06-03 Thread Andrew Pinski
On Tue, Jun 3, 2025 at 10:43 PM H.J. Lu wrote: > > On Tue, Jun 3, 2025 at 10:51 AM Andrew Pinski > wrote: > > > > When we have a smallish CSWTCH, it could be placed in the rodata.cst16 > > section so it can be merged with other constants across TUs. > > > > The fix is simple; just mark the decl

Re: [PATCH] switch-conversion: Mark CSWTCH as mergeable [PR120451]

2025-06-03 Thread H.J. Lu
On Tue, Jun 3, 2025 at 10:51 AM Andrew Pinski wrote: > > When we have a smallish CSWTCH, it could be placed in the rodata.cst16 > section so it can be merged with other constants across TUs. > > The fix is simple; just mark the decl as mergable (DECL_MERGEABLE). > DECL_MERGEABLE was added with r14

Re: [PATCH] switch-conversion: Mark CSWTCH as mergeable [PR120451]

2025-06-02 Thread Richard Biener
> Am 03.06.2025 um 04:51 schrieb Andrew Pinski : > > When we have a smallish CSWTCH, it could be placed in the rodata.cst16 > section so it can be merged with other constants across TUs. > > The fix is simple; just mark the decl as mergable (DECL_MERGEABLE). > DECL_MERGEABLE was added with r1

[PATCH] switch-conversion: Mark CSWTCH as mergeable [PR120451]

2025-06-02 Thread Andrew Pinski
When we have a smallish CSWTCH, it could be placed in the rodata.cst16 section so it can be merged with other constants across TUs. The fix is simple; just mark the decl as mergable (DECL_MERGEABLE). DECL_MERGEABLE was added with r14-1500-g4d935f52b0d5c0 specifically to improve these kind of decls