Re: [PATCH] [x86] Some tidy up for RA related hooks.

2022-11-21 Thread Hongtao Liu via Gcc-patches
On Mon, Nov 21, 2022 at 3:17 PM Uros Bizjak wrote: > > On Mon, Nov 21, 2022 at 6:24 AM Hongtao Liu wrote: > > > > On Mon, Nov 21, 2022 at 10:13 AM liuhongt wrote: > > > > > > When i'm working at [1] for ix86_can_change_mode_class, > > > I notice there're some incorrectness/misoptimization in cur

Re: [PATCH] [x86] Some tidy up for RA related hooks.

2022-11-20 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 21, 2022 at 6:24 AM Hongtao Liu wrote: > > On Mon, Nov 21, 2022 at 10:13 AM liuhongt wrote: > > > > When i'm working at [1] for ix86_can_change_mode_class, > > I notice there're some incorrectness/misoptimization in current RA-related > > hook. > > This patch tries to do some fix and

Re: [PATCH] [x86] Some tidy up for RA related hooks.

2022-11-20 Thread Hongtao Liu via Gcc-patches
On Mon, Nov 21, 2022 at 10:13 AM liuhongt wrote: > > When i'm working at [1] for ix86_can_change_mode_class, > I notice there're some incorrectness/misoptimization in current RA-related > hook. > This patch tries to do some fix and tidy up for them: > > 1. We also need to guard size of TO to be >

[PATCH] [x86] Some tidy up for RA related hooks.

2022-11-20 Thread liuhongt via Gcc-patches
When i'm working at [1] for ix86_can_change_mode_class, I notice there're some incorrectness/misoptimization in current RA-related hook. This patch tries to do some fix and tidy up for them: 1. We also need to guard size of TO to be less than TARGET_SSE2 ? 2 : 4 in ix86_can_change_mode_class. 2. M