27 lines
861 B
Diff
27 lines
861 B
Diff
From 962eda7f0336c883c52c33a9b61a19f7e80ea9e2 Mon Sep 17 00:00:00 2001
|
|
From: root <root@localhost.localdomain>
|
|
Date: Tue, 6 Jun 2023 22:29:03 +0800
|
|
Subject: [PATCH] To resolve the SPEC .548 fluctuation problem, revert GCC
|
|
commit 835d50c66aa5bde2f354a6e63a2afa7d2f76a05a
|
|
|
|
---
|
|
gcc/config/aarch64/aarch64.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
|
|
index 85dbd3898..116b4b8ca 100644
|
|
--- a/gcc/config/aarch64/aarch64.c
|
|
+++ b/gcc/config/aarch64/aarch64.c
|
|
@@ -12726,7 +12726,7 @@ cost_plus:
|
|
}
|
|
|
|
if (GET_MODE_CLASS (mode) == MODE_INT
|
|
- && (aarch64_plus_immediate (op1, mode)
|
|
+ && ((CONST_INT_P (op1) && aarch64_uimm12_shift (INTVAL (op1)))
|
|
|| aarch64_sve_addvl_addpl_immediate (op1, mode)))
|
|
{
|
|
*cost += rtx_cost (op0, mode, PLUS, 0, speed);
|
|
--
|
|
2.33.0
|
|
|