Re: [PATCH] PR middle-end/95126: Expand small const structs as immediate constants.

2022-06-01 Thread Jeff Law via Gcc-patches
On 2/26/2022 2:35 PM, Roger Sayle wrote: This patch resolves PR middle-end/95126 which is a code quality regression, by teaching the RTL expander to emit small const structs/unions as integer immediate constants. The motivating example from the bugzilla PR is: struct small{ short a,b; signed

[PATCH] PR middle-end/95126: Expand small const structs as immediate constants.

2022-02-26 Thread Roger Sayle
This patch resolves PR middle-end/95126 which is a code quality regression, by teaching the RTL expander to emit small const structs/unions as integer immediate constants. The motivating example from the bugzilla PR is: struct small{ short a,b; signed char c; }; extern int func(struct small X);