Message ID | 666cbebb-f222-4f45-b796-62a8088b31be@yahoo.co.jp |
---|---|
State | New |
Headers | show |
Series | None | expand |
On Tue, Jul 23, 2024 at 5:52 PM Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> wrote: > > According to the implemented pipeline model, this cost can be assumed to be > 1 clock cycle. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc (xtensa_insn_cost): > Add a case statement for TYPE_FARITH. Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index d90e78fe9c4..a7cb3cc59fc 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -4722,6 +4722,7 @@ xtensa_insn_cost (rtx_insn *insn, bool speed) case TYPE_ARITH: case TYPE_MULTI: case TYPE_NOP: + case TYPE_FARITH: case TYPE_FSTORE: return COSTS_N_INSNS (n);
According to the implemented pipeline model, this cost can be assumed to be 1 clock cycle. gcc/ChangeLog: * config/xtensa/xtensa.cc (xtensa_insn_cost): Add a case statement for TYPE_FARITH. From b819dd4fb38bedd95ef5d66847a0f80b9ca8ee86 Mon Sep 17 00:00:00 2001 From: Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> Date: Wed, 24 Jul 2024 06:07:06 +0900 Subject: [PATCH 2/2] xtensa: Add missing speed cost for TYPE_FARITH in TARGET_INSN_COST According to the implemented pipeline model, this cost can be assumed to be 1 clock cycle. gcc/ChangeLog: * config/xtensa/xtensa.cc (xtensa_insn_cost): Add a case statement for TYPE_FARITH. --- gcc/config/xtensa/xtensa.cc | 1 + 1 file changed, 1 insertion(+)