aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-11-16 21:39:31 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2016-11-16 21:39:31 +0000
commita3be783adf3615d77da725cd3f51072cfbdcdee8 (patch)
treebf2700a0578161bf358fe2b8f42eb270e2f7fffa /gcc
parent9d2082e72de26d70e0fcb84aeba2fa0a2ca5ba5d (diff)
downloadgcc-a3be783adf3615d77da725cd3f51072cfbdcdee8.zip
gcc-a3be783adf3615d77da725cd3f51072cfbdcdee8.tar.gz
gcc-a3be783adf3615d77da725cd3f51072cfbdcdee8.tar.bz2
MIPS16/GCC: Improve `casesi_internal_mips16_<mode>'s instruction count estimate
gcc/ * config/mips/mips.md (casesi_internal_mips16_<mode>): Set `insn_count' to 11 rather than 16. From-SVN: r242516
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a8ff380..17b79e5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
+ * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
+ `insn_count' to 11 rather than 16.
+
+2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
+
* config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
`ltu' rather than `leu' operation in the RTL pattern
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 3aea5a7..13852ef 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -6444,7 +6444,7 @@
return "j\t%4";
}
- [(set_attr "insn_count" "16")])
+ [(set_attr "insn_count" "11")])
;; For TARGET_USE_GOT, we save the gp in the jmp_buf as well.
;; While it is possible to either pull it off the stack (in the