aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2023-04-29 00:12:39 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2023-05-10 02:32:17 +0200
commit46f9d150c712e70c41aed7293058a75e55c8300f (patch)
treeba3915894cb0b67072abbf32348fc8db5d5cd948
parent35e324da03c53504059460d4a84059230b7d97aa (diff)
downloadgcc-46f9d150c712e70c41aed7293058a75e55c8300f.zip
gcc-46f9d150c712e70c41aed7293058a75e55c8300f.tar.gz
gcc-46f9d150c712e70c41aed7293058a75e55c8300f.tar.bz2
CRIS: Fix ccmode typo in cris_postdbr_cmpelim
Typo spotted while doing CCmode improvements, as a missed optimization. It's almost visible from the patch context; there's not much done in terms of "mode-adjustment" when replacing (reg:CC CRIS_CC0_REGNUM) with a copy! This bug affects functions in the newlib printf-formatting functions (nothing else in libgcc or newlib libc), with the performance impact on coremark scores being less than 1e-6 (3/5078992 cycles, 6/48543 bytes). * config/cris/cris.cc (cris_postdbr_cmpelim): Correct mode of modeadjusted_dccr.
-rw-r--r--gcc/config/cris/cris.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/cris/cris.cc b/gcc/config/cris/cris.cc
index 1c7289b..7fca2af 100644
--- a/gcc/config/cris/cris.cc
+++ b/gcc/config/cris/cris.cc
@@ -433,7 +433,7 @@ cris_postdbr_cmpelim ()
machine_mode ccmode = GET_MODE (src);
rtx modeadjusted_dccr
= (ccmode == CCmode ? dccr
- : gen_rtx_REG (CCmode, CRIS_CC0_REGNUM));
+ : gen_rtx_REG (ccmode, CRIS_CC0_REGNUM));
rtx compare
/* We don't need to copy_rtx pat: we're going to
delete that insn. */