]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mode-switching: Add note problem
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:55 +0000 (17:28 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:55 +0000 (17:28 +0000)
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

index c3e4d24de9b89769622b7d66e267bafe1e64091b..8577069bde1a98144f9e12345301901e042ea1c1 100644 (file)
@@ -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.  */