summaryrefslogtreecommitdiff
path: root/0093-fix-bugs-within-pointer-compression-and-DFE.patch
diff options
context:
space:
mode:
Diffstat (limited to '0093-fix-bugs-within-pointer-compression-and-DFE.patch')
-rw-r--r--0093-fix-bugs-within-pointer-compression-and-DFE.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0093-fix-bugs-within-pointer-compression-and-DFE.patch b/0093-fix-bugs-within-pointer-compression-and-DFE.patch
new file mode 100644
index 0000000..64b35fe
--- /dev/null
+++ b/0093-fix-bugs-within-pointer-compression-and-DFE.patch
@@ -0,0 +1,26 @@
+From 48724ee73cd58b67d59962ee4d56ac85db797e61 Mon Sep 17 00:00:00 2001
+From: tiancheng-bao <baotiancheng1@huawei.com>
+Date: Fri, 10 May 2024 17:52:27 +0800
+Subject: [PATCH 4/4] fix bugs within pointer compression and DFE
+
+---
+ gcc/ipa-struct-reorg/ipa-struct-reorg.cc | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/gcc/ipa-struct-reorg/ipa-struct-reorg.cc b/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
+index 2257d3528..1a169c635 100644
+--- a/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
++++ b/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
+@@ -7472,9 +7472,6 @@ ipa_struct_reorg::rewrite_assign (gassign *stmt, gimple_stmt_iterator *gsi)
+ continue;
+ tree lhs_expr = newlhs[i] ? newlhs[i] : lhs;
+ tree rhs_expr = newrhs[i] ? newrhs[i] : rhs;
+- if (!useless_type_conversion_p (TREE_TYPE (lhs_expr),
+- TREE_TYPE (rhs_expr)))
+- rhs_expr = gimplify_build1 (gsi, NOP_EXPR, TREE_TYPE (lhs_expr), rhs_expr);
+ gimple *newstmt = gimple_build_assign (lhs_expr, rhs_expr);
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ {
+--
+2.33.0
+