summaryrefslogtreecommitdiff
path: root/0133-Backport-SME-mode-switching-Add-note-problem.patch
diff options
context:
space:
mode:
Diffstat (limited to '0133-Backport-SME-mode-switching-Add-note-problem.patch')
-rw-r--r--0133-Backport-SME-mode-switching-Add-note-problem.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0133-Backport-SME-mode-switching-Add-note-problem.patch b/0133-Backport-SME-mode-switching-Add-note-problem.patch
new file mode 100644
index 0000000..21508da
--- /dev/null
+++ b/0133-Backport-SME-mode-switching-Add-note-problem.patch
@@ -0,0 +1,35 @@
+From 7ab54a765239bdd2ce548cffdd5b83f9c20f69da Mon Sep 17 00:00:00 2001
+From: Richard Sandiford <richard.sandiford@arm.com>
+Date: Sat, 11 Nov 2023 17:28:55 +0000
+Subject: [PATCH 034/157] [Backport][SME] mode-switching: Add note problem
+
+Reference: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3cd3a09b3f91a1d023cb180763d40598d6bb274b
+
+optimize_mode_switching uses REG_DEAD notes to track register
+liveness, but it failed to tell DF to calculate up-to-date notes.
+
+Noticed by inspection. I don't have a testcase that fails
+because of this.
+
+gcc/
+ * mode-switching.cc (optimize_mode_switching): Call
+ df_note_add_problem.
+---
+ gcc/mode-switching.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gcc/mode-switching.cc b/gcc/mode-switching.cc
+index 4cf8f03a0..2a9f98793 100644
+--- a/gcc/mode-switching.cc
++++ b/gcc/mode-switching.cc
+@@ -540,6 +540,7 @@ optimize_mode_switching (void)
+ pre_exit = create_pre_exit (n_entities, entity_map, num_modes);
+ }
+
++ df_note_add_problem ();
+ df_analyze ();
+
+ /* Create the bitmap vectors. */
+--
+2.33.0
+