[PATCH 2/2] xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P

2022-09-11 Thread Takayuki 'January June' Suwa via Gcc-patches
This patch implements new target hook TARGET_CONSTANT_OK_FOR_CPROP_P in order to exclude CONST_INTs that cannot fit into a MOVI machine instruction from cprop. gcc/ChangeLog: * config/xtensa/xtensa.c (TARGET_CONSTANT_OK_FOR_CPROP_P): New macro definition. (xtensa_constant_

Re: [PATCH 2/2] xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P

2022-09-12 Thread Max Filippov via Gcc-patches
On Sun, Sep 11, 2022 at 1:50 PM Takayuki 'January June' Suwa wrote: > > This patch implements new target hook TARGET_CONSTANT_OK_FOR_CPROP_P in > order to exclude CONST_INTs that cannot fit into a MOVI machine instruction > from cprop. > > gcc/ChangeLog: > > * config/xtensa/xtensa.c (TARGE

Re: [PATCH 2/2] xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P

2022-09-12 Thread Takayuki 'January June' Suwa via Gcc-patches
On 2022/09/13 4:34, Max Filippov wrote: Hi! > On Sun, Sep 11, 2022 at 1:50 PM Takayuki 'January June' Suwa > wrote: >> >> This patch implements new target hook TARGET_CONSTANT_OK_FOR_CPROP_P in >> order to exclude CONST_INTs that cannot fit into a MOVI machine instruction >> from cprop. >> >> gcc

Re: [PATCH 2/2] xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P

2022-09-13 Thread Max Filippov via Gcc-patches
On Mon, Sep 12, 2022 at 8:00 PM Takayuki 'January June' Suwa wrote: > On 2022/09/13 4:34, Max Filippov wrote: > > On Sun, Sep 11, 2022 at 1:50 PM Takayuki 'January June' Suwa > > wrote: > >> > >> This patch implements new target hook TARGET_CONSTANT_OK_FOR_CPROP_P in > >> order to exclude CONST_I