Hi!

My recent combine-stack-adj.c change broke df checking bootstrap,
while most of the changes are done through validate_change/confirm_changes
which update df info, the removal of REG_EQUAL notes didn't update df info.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, plus
tested with yes,df checking build/regtest on x86_64-linux (which previously
failed), ok for trunk?

2020-05-06  Jakub Jelinek  <ja...@redhat.com>

        PR bootstrap/94961
        PR rtl-optimization/94516
        * combine-stack-adj.c (try_apply_stack_adjustment): Call
        df_notes_rescan after calling remove_reg_equal_equiv_notes.

--- gcc/combine-stack-adj.c.jj  2020-05-05 16:34:33.611007861 +0200
+++ gcc/combine-stack-adj.c     2020-05-06 13:27:03.275796460 +0200
@@ -303,7 +303,10 @@ try_apply_stack_adjustment (rtx_insn *in
        ml->sp_offset -= delta;
 
       if (remove_equal)
-       remove_reg_equal_equiv_notes (insn);
+       {
+         remove_reg_equal_equiv_notes (insn);
+         df_notes_rescan (insn);
+       }
       return true;
     }
   else

        Jakub

Reply via email to