On 11/5/23 11:46, Richard Sandiford wrote:
OK. Triggering this would likely be fairly hard, so I'm not going to stress about a testcase.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.
jeff