From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/files/
Date: Fri, 4 Oct 2024 08:27:58 +0000 (UTC) [thread overview]
Message-ID: <1728030369.fce4ac1987e94dac956cb3591ff5e095e8c5465c.sam@gentoo> (raw)
commit: fce4ac1987e94dac956cb3591ff5e095e8c5465c
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Aug 28 07:07:17 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 4 08:26:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fce4ac19
sys-devel/gcc: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/gcc-15.0.0_pre20240623-PR115602.patch | 120 ---------------------
1 file changed, 120 deletions(-)
diff --git a/sys-devel/gcc/files/gcc-15.0.0_pre20240623-PR115602.patch b/sys-devel/gcc/files/gcc-15.0.0_pre20240623-PR115602.patch
deleted file mode 100644
index d78c6d964906..000000000000
--- a/sys-devel/gcc/files/gcc-15.0.0_pre20240623-PR115602.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-https://gcc.gnu.org/PR115602
-https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=c43c74f6ec795a586388de7abfdd20a0040f6f16
-
-From c43c74f6ec795a586388de7abfdd20a0040f6f16 Mon Sep 17 00:00:00 2001
-From: Richard Biener <rguenther@suse.de>
-Date: Mon, 24 Jun 2024 09:52:39 +0200
-Subject: [PATCH] tree-optimization/115602 - SLP CSE results in cycles
-
-The following prevents SLP CSE to create new cycles which happened
-because of a 1:1 permute node being present where its child was then
-CSEd to the permute node. Fixed by making a node only available to
-CSE to after recursing.
-
- PR tree-optimization/115602
- * tree-vect-slp.cc (vect_cse_slp_nodes): Delay populating the
- bst-map to avoid cycles.
-
- * gcc.dg/vect/pr115602.c: New testcase.
----
- gcc/testsuite/gcc.dg/vect/pr115602.c | 27 +++++++++++++++++++++++
- gcc/tree-vect-slp.cc | 33 ++++++++++++++++++----------
- 2 files changed, 48 insertions(+), 12 deletions(-)
- create mode 100644 gcc/testsuite/gcc.dg/vect/pr115602.c
-
-diff --git a/gcc/testsuite/gcc.dg/vect/pr115602.c b/gcc/testsuite/gcc.dg/vect/pr115602.c
-new file mode 100644
-index 00000000000..9a208d1d950
---- /dev/null
-+++ b/gcc/testsuite/gcc.dg/vect/pr115602.c
-@@ -0,0 +1,27 @@
-+/* { dg-do compile } */
-+
-+typedef struct {
-+ double x, y;
-+} pointf;
-+struct {
-+ pointf focus;
-+ double zoom;
-+ pointf devscale;
-+ char button;
-+ pointf oldpointer;
-+} gvevent_motion_job;
-+char gvevent_motion_job_4;
-+double gvevent_motion_pointer_1, gvevent_motion_pointer_0;
-+void gvevent_motion() {
-+ double dx = (gvevent_motion_pointer_0 - gvevent_motion_job.oldpointer.x) /
-+ gvevent_motion_job.devscale.x,
-+ dy = (gvevent_motion_pointer_1 - gvevent_motion_job.oldpointer.y) /
-+ gvevent_motion_job.devscale.y;
-+ if (dx && dy < .0001)
-+ return;
-+ switch (gvevent_motion_job_4)
-+ case 2: {
-+ gvevent_motion_job.focus.x -= dy / gvevent_motion_job.zoom;
-+ gvevent_motion_job.focus.y += dx / gvevent_motion_job.zoom;
-+ }
-+}
-diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
-index e84aeabef94..b47b7e8c979 100644
---- a/gcc/tree-vect-slp.cc
-+++ b/gcc/tree-vect-slp.cc
-@@ -6079,35 +6079,44 @@ vect_optimize_slp_pass::run ()
- static void
- vect_cse_slp_nodes (scalar_stmts_to_slp_tree_map_t *bst_map, slp_tree& node)
- {
-+ bool put_p = false;
- if (SLP_TREE_DEF_TYPE (node) == vect_internal_def
- /* Besides some VEC_PERM_EXPR, two-operator nodes also
- lack scalar stmts and thus CSE doesn't work via bst_map. Ideally
- we'd have sth that works for all internal and external nodes. */
- && !SLP_TREE_SCALAR_STMTS (node).is_empty ())
- {
-- if (slp_tree *leader = bst_map->get (SLP_TREE_SCALAR_STMTS (node)))
-+ slp_tree *leader = bst_map->get (SLP_TREE_SCALAR_STMTS (node));
-+ if (leader)
- {
-- if (*leader != node)
-- {
-- if (dump_enabled_p ())
-- dump_printf_loc (MSG_NOTE, vect_location,
-- "re-using SLP tree %p for %p\n",
-- (void *)*leader, (void *)node);
-- vect_free_slp_tree (node);
-- (*leader)->refcnt += 1;
-- node = *leader;
-- }
-+ /* We've visited this node already. */
-+ if (!*leader || *leader == node)
-+ return;
-+
-+ if (dump_enabled_p ())
-+ dump_printf_loc (MSG_NOTE, vect_location,
-+ "re-using SLP tree %p for %p\n",
-+ (void *)*leader, (void *)node);
-+ vect_free_slp_tree (node);
-+ (*leader)->refcnt += 1;
-+ node = *leader;
- return;
- }
-
-- bst_map->put (SLP_TREE_SCALAR_STMTS (node).copy (), node);
-+ /* Avoid creating a cycle by populating the map only after recursion. */
-+ bst_map->put (SLP_TREE_SCALAR_STMTS (node).copy (), nullptr);
- node->refcnt += 1;
-+ put_p = true;
- /* And recurse. */
- }
-
- for (slp_tree &child : SLP_TREE_CHILDREN (node))
- if (child)
- vect_cse_slp_nodes (bst_map, child);
-+
-+ /* Now record the node for CSE in other siblings. */
-+ if (put_p)
-+ bst_map->put (SLP_TREE_SCALAR_STMTS (node).copy (), node);
- }
-
- /* Optimize the SLP graph of VINFO. */
---
-2.43.0
next reply other threads:[~2024-10-04 8:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 8:27 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-13 13:43 [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/files/ Conrad Kostecki
2024-06-10 15:41 Sam James
2024-05-26 21:31 Conrad Kostecki
2024-04-18 19:32 Conrad Kostecki
2024-03-07 18:39 Sam James
2023-11-22 12:08 Sam James
2023-10-27 3:32 Sam James
2023-09-25 2:21 Sam James
2023-05-31 16:37 Conrad Kostecki
2023-05-11 20:28 Conrad Kostecki
2023-04-14 1:06 Sam James
2022-08-30 22:57 Conrad Kostecki
2020-05-21 8:22 Sergei Trofimovich
2019-05-09 22:39 Sergei Trofimovich
2017-12-04 23:27 Sergei Trofimovich
2017-10-06 18:43 Andreas Hüttel
2017-10-02 22:23 Andreas Hüttel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1728030369.fce4ac1987e94dac956cb3591ff5e095e8c5465c.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox