On Mon, Sep 12, 2022 at 8:00 PM Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp> wrote: > On 2022/09/13 4:34, Max Filippov wrote: > > On Sun, Sep 11, 2022 at 1:50 PM Takayuki 'January June' Suwa > > <jjsuwa_sys3...@yahoo.co.jp> 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 (TARGET_CONSTANT_OK_FOR_CPROP_P): > >> New macro definition. > >> (xtensa_constant_ok_for_cprop_p): > >> Implement the hook as mentioned above. > >> --- > >> gcc/config/xtensa/xtensa.cc | 20 +++++++++++++++++--- > >> 1 file changed, 17 insertions(+), 3 deletions(-) > > > > Regtested for target=xtensa-linux-uclibc, no new regressions. > > Committed to master. > > > > Oops, sorry, this patch doesn't have the prerequisite patch merged in, so > please revert (that target hook isn't working yet).
OK, reverted. -- Thanks. -- Max