30 lines
910 B
Diff
30 lines
910 B
Diff
|
|
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
|
||
|
|
|