]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit6cf8989c6e63ef07b0516d19ce86bbe921f1a485
treeb2907374dac134e3d7a9873cf78b42386b974e58
parent9e3607e19bcd34e1fc857ca44ae30a8a1a4f5e20
LoongArch: Change the default value of LARCH_CALL_RATIO to 6.

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