26 lines
725 B
Diff
26 lines
725 B
Diff
From aa66bcf2b684655d0fbcc6b4543ffef1b2e37288 Mon Sep 17 00:00:00 2001
|
|
From: vchernon <chernonog.vyacheslav@huawei.com>
|
|
Date: Thu, 28 Dec 2023 10:44:35 +0800
|
|
Subject: [PATCH] add optimization level requirement to the gate.
|
|
|
|
---
|
|
gcc/crypto-accel.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/gcc/crypto-accel.c b/gcc/crypto-accel.c
|
|
index f4e810a6b..e7766a585 100644
|
|
--- a/gcc/crypto-accel.c
|
|
+++ b/gcc/crypto-accel.c
|
|
@@ -2391,7 +2391,7 @@ public:
|
|
/* opt_pass methods: */
|
|
virtual bool gate (function *)
|
|
{
|
|
- if (flag_crypto_accel_aes <= 0)
|
|
+ if (flag_crypto_accel_aes <= 0 || optimize < 1)
|
|
return false;
|
|
return targetm.get_v16qi_mode
|
|
&& targetm.gen_rev32v16qi
|
|
--
|
|
2.33.0
|
|
|