summaryrefslogtreecommitdiff
path: root/0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch
blob: c9bf39eb26f253d23a276d2b251e4f5f0bc025a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From acb6bbf0612aead00a879892ba8ed816c90fe788 Mon Sep 17 00:00:00 2001
From: Chernonog Viacheslav <chernonog.vyacheslav@huawei.com>
Date: Wed, 8 May 2024 19:24:27 +0800
Subject: [PATCH 3/4] [AES][Bugfix] Change set_of to reg_set_p, and add check
 for global_regs fix for I9JDHE

---
 gcc/rtl-matcher.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/rtl-matcher.h b/gcc/rtl-matcher.h
index 6aed8d98d..5310f6266 100644
--- a/gcc/rtl-matcher.h
+++ b/gcc/rtl-matcher.h
@@ -56,8 +56,9 @@ check_def_chain_ref (df_ref ref, rtx reg)
   if (!ref || !DF_REF_INSN_INFO (ref))
     return false;
 
-  return !global_regs[REGNO (reg)]
-    || set_of (reg, DF_REF_INSN (ref));
+  return !(REGNO (reg) < FIRST_PSEUDO_REGISTER
+	   && global_regs[REGNO (reg)])
+    || reg_set_p (reg, DF_REF_INSN (ref));
 }
 
 /* Get the single def instruction of the reg being used in the insn.  */
-- 
2.33.0