]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/42389 (ICE in advance_state_on_fence with sel-schd...
authorAndrey Belevantsev <abel@ispras.ru>
Tue, 24 Aug 2010 09:02:30 +0000 (13:02 +0400)
committerAndrey Belevantsev <abel@gcc.gnu.org>
Tue, 24 Aug 2010 09:02:30 +0000 (13:02 +0400)
commit7bb3593c938642705b7b9496607087e14b52b782
tree713f6f7c433b1c449054bde28002d8123fcc3008
parentac84195e75c66ffbda18043f40afaf9103c4d731
backport: re PR rtl-optimization/42389 (ICE in advance_state_on_fence with sel-schd for 175.vpr)

Backport from mainline:
        PR rtl-optimization/42389
         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
         to can_issue_more.
         (advance_state_on_fence): Likewise.
         (sel_target_adjust_priority): Print debug output only when
         sched_verbose >= 4, not 2.
         (get_expr_cost): Do not issue all unique insns on the next cycle.
         (fill_insns): Initialize can_issue_more from the value saved
         with the fence.
         * sel-sched-ir.c (flist_add): New parameter issue_more.
         Init FENCE_ISSUE_MORE with it.
         (merge_fences): Likewise.
         (init_fences): Update call to flist_add.
         (add_to_fences, add_clean_fence_to_fences)
         (add_dirty_fence_to_fences): Likewise.
         (move_fence_to_fences): Update call to merge_fences.
         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
         sched groups.
         * sel-sched-ir.h (struct _fence): New field issue_more.
         (FENCE_ISSUE_MORE): New accessor macro.

From-SVN: r163508
gcc/ChangeLog
gcc/sel-sched-ir.c
gcc/sel-sched-ir.h
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr42389.c [new file with mode: 0644]