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: PR tree-optimization/54985


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


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