This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR tree-optimization/54985
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 23 Oct 2012 22:50:59 +0200
- Subject: Re: PR tree-optimization/54985
- References: <5086FF8C.40209@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Oct 23, 2012 at 02:35:24PM -0600, Jeff Law wrote:
> +/* Return TRUE if the statement at the end of e->dest depends on
> + the output of any statement in BB. Otherwise return FALSE.
> +
> + This is used when we are threading a backedge and need to ensure
> + that temporary equivalences from BB do not affect the condition
> + in e->dest. */
> +
> +static bool
> +cond_arg_set_in_bb (edge e, basic_block bb, int n)
> +{
> + ssa_op_iter iter;
> + use_operand_p use_p;
> + gimple last = gsi_stmt (gsi_last_bb (e->dest));
Use gimple last = last_stmt (e->dest); instead? That way any possible
debug stmts are ignored.
Jakub