This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, Google] Notify df framework when removing an insn in simplify-got


Carrot Wei <carrot@google.com> writes:
> Index: simplify-got.c
> ===================================================================
> --- simplify-got.c (revision 224174)
> +++ simplify-got.c (working copy)
> @@ -169,7 +169,10 @@
>
>    /* Since there is no usage of pic_reg now, we can remove it.  */
>    if (use)
> -    remove_insn (use);
> +    {
> +      df_insn_delete (use);
> +      remove_insn (use);
> +    }
>    targetm.got_access.clear_pic_reg ();
>    free (got_accesses);
>    htab_delete (var_table);

Why not just use delete_insn ()?

Thanks,
Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]