This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix twolf -funroll-loops -O3 miscompilation (a semi-latent web.c bug)
> Or rather this one. Same hammer, different color. It turns out that
> the rtlanal.c change caused problems, so I've got to use a home-brewn
> equivalent of remove_reg_equal_equiv_notes_for_regno...
>
> Test case is unchanged so I'm omitting it here.
>
> Ciao!
> Steven
>
>
> gcc/
> * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member.
> (analyze_iv_to_split_insn): Record it.
> (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL
> notes that refer to IVs that are being split.
> (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice.
> Use FOR_BB_INSNS_SAFE.
That's fine with me, thanks. You might want to defer applying it until the
reason why it isn't apparently sufficient for aermod.f90 is understood though.
--
Eric Botcazou