This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, Google] Notify df framework when removing an insn in simplify-got
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: Carrot Wei <carrot at google dot com>
- Cc: David Li <davidxl at google dot com>, "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 10 Jun 2015 07:43:34 +0100
- Subject: Re: [PATCH, Google] Notify df framework when removing an insn in simplify-got
- Authentication-results: sourceware.org; auth=none
- References: <CAEe8uEAfG_z2kMjiS__ACReeA4kBZy9+Eq=EUm+UfnM5Zw=y4w at mail dot gmail dot com>
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