aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-11-11 17:28:55 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2023-11-11 17:28:55 +0000
commit3cd3a09b3f91a1d023cb180763d40598d6bb274b (patch)
treed53aa0ca6100cdf13c7ab49e55a4d4a41d8ad462 /gcc
parent8479a3759025961f80cf0cd6bb3f127e09d0510d (diff)
downloadgcc-3cd3a09b3f91a1d023cb180763d40598d6bb274b.zip
gcc-3cd3a09b3f91a1d023cb180763d40598d6bb274b.tar.gz
gcc-3cd3a09b3f91a1d023cb180763d40598d6bb274b.tar.bz2
mode-switching: Add note problem
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/mode-switching.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/mode-switching.cc b/gcc/mode-switching.cc
index c3e4d24..8577069 100644
--- a/gcc/mode-switching.cc
+++ b/gcc/mode-switching.cc
@@ -541,6 +541,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. */