Message ID | mptr0l482cv.fsf@arm.com |
---|---|
State | New |
Headers | show |
Series | Tweaks and extensions to the mode-switching pass | expand |
On 11/5/23 11:46, Richard Sandiford wrote: > 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. OK. Triggering this would likely be fairly hard, so I'm not going to stress about a testcase. jeff
diff --git a/gcc/mode-switching.cc b/gcc/mode-switching.cc index c3e4d24de9b..8577069bde1 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. */