[PATCH] Fix old problem in if-conversion pass

Ian Lance Taylor ian@airs.com
Tue Nov 8 18:47:00 GMT 2005


Richard Henderson <rth@redhat.com> writes:

> On Tue, Nov 08, 2005 at 03:50:43PM +0100, Eric Botcazou wrote:
> > +      if ((insn = PREV_INSN (earliest)) != NULL_RTX
> > +	  && (set = single_set (insn)) != NULL_RTX
> 
> By using PREV_INSN, I'm worried that this stops working when
> debugging is enabled, and notes appear in the insn chain.
> 
> At minimum I would suggest prev_nonnote_insn.

Same change should apply to noce_get_alt_condition, then.

Ian



More information about the Gcc-patches mailing list