27 lines
827 B
Diff
27 lines
827 B
Diff
From 4014d651825c3e03e0ad2eabeddcfb94f5f00e68 Mon Sep 17 00:00:00 2001
|
|
From: Diachkov Ilia <diachkov.ilia1@huawei-partners.com>
|
|
Date: Fri, 29 Dec 2023 05:59:00 +0800
|
|
Subject: [PATCH 2/2] Fix fail in IPA prefetch (src-openEuler/gcc: I8RV7T)
|
|
|
|
---
|
|
gcc/ipa-prefetch.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/gcc/ipa-prefetch.c b/gcc/ipa-prefetch.c
|
|
index 24cb4424a..d9456519c 100644
|
|
--- a/gcc/ipa-prefetch.c
|
|
+++ b/gcc/ipa-prefetch.c
|
|
@@ -943,6 +943,9 @@ compare_memrefs (memref_t* mr, memref_t* mr2)
|
|
(*mr_candidate_map)[mr] = mr2;
|
|
return;
|
|
}
|
|
+ /* Probably we shouldn't leave nulls in the map. */
|
|
+ if ((*mr_candidate_map)[mr] == NULL)
|
|
+ return;
|
|
/* TODO: support analysis with incrementation of different fields. */
|
|
if ((*mr_candidate_map)[mr]->offset != mr2->offset)
|
|
{
|
|
--
|
|
2.33.0
|
|
|