Re: [PATCH][i386]: Update ix86_can_change_mode_class target hook to accept QImode conversions

2022-11-15 Thread Hongtao Liu via Gcc-patches
On Mon, Nov 14, 2022 at 10:14 AM Hongtao Liu wrote: > > On Fri, Nov 11, 2022 at 10:47 PM Tamar Christina via Gcc-patches > wrote: > > > > Hi All, > > > > The current i386 implementation of the TARGET_CAN_CHANGE_MODE_CLASS is > > currently > > not useful before re-alloc. > > > > In particular bef

Re: [PATCH][i386]: Update ix86_can_change_mode_class target hook to accept QImode conversions

2022-11-15 Thread Hongtao Liu via Gcc-patches
On Fri, Nov 11, 2022 at 10:47 PM Tamar Christina via Gcc-patches wrote: > > Hi All, > > The current i386 implementation of the TARGET_CAN_CHANGE_MODE_CLASS is > currently > not useful before re-alloc. > > In particular before regalloc optimization passes query the hook using > ALL_REGS, > but be

RE: [PATCH][i386]: Update ix86_can_change_mode_class target hook to accept QImode conversions

2022-11-14 Thread Tamar Christina via Gcc-patches
can_change_mode_class target > hook to accept QImode conversions > > On Fri, Nov 11, 2022 at 10:47 PM Tamar Christina via Gcc-patches patc...@gcc.gnu.org> wrote: > > > > Hi All, > > > > The current i386 implementation of the > TARGET_CAN_CHANGE_MODE_C

Re: [PATCH][i386]: Update ix86_can_change_mode_class target hook to accept QImode conversions

2022-11-13 Thread Hongtao Liu via Gcc-patches
On Fri, Nov 11, 2022 at 10:47 PM Tamar Christina via Gcc-patches wrote: > > Hi All, > > The current i386 implementation of the TARGET_CAN_CHANGE_MODE_CLASS is > currently > not useful before re-alloc. > > In particular before regalloc optimization passes query the hook using > ALL_REGS, > but be

[PATCH][i386]: Update ix86_can_change_mode_class target hook to accept QImode conversions

2022-11-11 Thread Tamar Christina via Gcc-patches
Hi All, The current i386 implementation of the TARGET_CAN_CHANGE_MODE_CLASS is currently not useful before re-alloc. In particular before regalloc optimization passes query the hook using ALL_REGS, but because of the if (MAYBE_FLOAT_CLASS_P (regclass)) return false; The hook returns fal