From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7877) id 4F08E3858C1F; Thu, 15 Jun 2023 06:13:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F08E3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686809608; bh=4kvm9CW57NpwZOl8nUMpaQ1KetXh/u6osoqvyRrxyK4=; h=From:To:Subject:Date:From; b=IqsqR7bun8NlszTEYqldI6kFqiezCDG3Fb/jNDsfeemZuj0a8eULn4BL+mfxIcN9e pfaNIjwaEkGGf1d2dD3QjYgB8n/JmCZlrLVkAWNzsfJOtKPR2VbY8mRBoA1ZWDsx/2 8ABRycB1uYJ6Yj1iPCtmnt3HYrr7Ts/u69zmVOzk= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: LuluCheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-1831] LoongArch: Change the default value of LARCH_CALL_RATIO to 6. X-Act-Checkin: gcc X-Git-Author: chenxiaolong X-Git-Refname: refs/heads/master X-Git-Oldrev: 9e3607e19bcd34e1fc857ca44ae30a8a1a4f5e20 X-Git-Newrev: 6cf8989c6e63ef07b0516d19ce86bbe921f1a485 Message-Id: <20230615061328.4F08E3858C1F@sourceware.org> Date: Thu, 15 Jun 2023 06:13:28 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6cf8989c6e63ef07b0516d19ce86bbe921f1a485 commit r14-1831-g6cf8989c6e63ef07b0516d19ce86bbe921f1a485 Author: chenxiaolong Date: Thu Jun 15 02:46:24 2023 +0000 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. Diff: --- gcc/config/loongarch/loongarch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h index 829acdaa9be..eca723293a1 100644 --- a/gcc/config/loongarch/loongarch.h +++ b/gcc/config/loongarch/loongarch.h @@ -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