]> gcc.gnu.org Git - gcc.git/commitdiff
LoongArch: Change the default value of LARCH_CALL_RATIO to 6.
authorchenxiaolong <chenxl04200420@163.com>
Thu, 15 Jun 2023 02:46:24 +0000 (02:46 +0000)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 15 Jun 2023 06:12:15 +0000 (14:12 +0800)
During the regression testing of the LoongArch architecture GCC, it was found
that the tests in the pr90883.C file failed. The problem was modulated and
found that the error was caused by setting the macro LARCH_CALL_RATIO to a too
large value. Combined with the actual LoongArch architecture, the different
thresholds for meeting the test conditions were tested using the engineering method
(SPEC CPU 2006), and the results showed that its optimal threshold should be set
to 6.

gcc/ChangeLog:

* config/loongarch/loongarch.h (LARCH_CALL_RATIO): Modify the value
of macro LARCH_CALL_RATIO on LoongArch to make it perform optimally.

gcc/config/loongarch/loongarch.h

index 829acdaa9be5ec112ec8685f9f8fe63ffb51dc5e..eca723293a1ff5a5f7cd955084ccff5ae41f4e0b 100644 (file)
@@ -1073,7 +1073,7 @@ typedef struct {
 /* The base cost of a memcpy call, for MOVE_RATIO and friends.  These
    values were determined experimentally by benchmarking with CSiBE.
 */
-#define LARCH_CALL_RATIO 8
+#define LARCH_CALL_RATIO 6
 
 /* Any loop-based implementation of cpymemsi will have at least
    LARCH_MAX_MOVE_OPS_PER_LOOP_ITER memory-to-memory
This page took 0.071998 seconds and 5 git commands to generate.