re PR rtl-optimization/55006 (aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops...
authorSteven Bosscher <steven@gcc.gnu.org>
Wed, 28 Nov 2012 00:17:34 +0000 (00:17 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 28 Nov 2012 00:17:34 +0000 (00:17 +0000)
commit4a0c3fde9315ade563b20cf441776364e26bf472
tree491c89308ebf3548a3b6ab5d864ded554afc2a8c
parentf633801699d5206fcc624053dcd807f792cfaa06
re PR rtl-optimization/55006 (aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526)

PR rtl-optimization/55006
* 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.

From-SVN: r193876
gcc/ChangeLog
gcc/loop-unroll.c