]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa: Add missing speed cost for TYPE_FARITH in TARGET_INSN_COST
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Tue, 23 Jul 2024 21:07:06 +0000 (06:07 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 30 Jul 2024 06:09:22 +0000 (23:09 -0700)
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

index 1ccd42bcda890990937cc31920043aa30d40bdd8..43b1332d42b38e85181c9e0fb0972f219c1a76f6 100644 (file)
@@ -4723,6 +4723,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);