re PR rtl-optimization/48235 (ICE: SIGSEGV in has_dependence_p (sel-sched-ir.c:3263...
authorDmitry Melnik <dm@ispras.ru>
Fri, 8 Apr 2011 11:58:23 +0000 (11:58 +0000)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 8 Apr 2011 11:58:23 +0000 (15:58 +0400)
commit7c1f0b40206bed9fc4b62a04ca9f49c8b9cea4dc
tree1fa6f7e96f6d0620dc73960c0139cec0127e43c0
parentea4d630fef8a13e6fa4a1db99b1d1057a0bd7a72
re PR rtl-optimization/48235 (ICE: SIGSEGV in has_dependence_p (sel-sched-ir.c:3263) with -fselective-scheduling2 and custom flags)

PR rtl-optimization/48235
* sel-sched.c (code_motion_process_successors): Recompute the last
insn in basic block if control flow changed.
(code_motion_path_driver): Ditto.  Recompute the first insn as well.
Update condition for ilist_remove.

testsuite:
* gcc.dg/pr48235.c: New.

From-SVN: r172177
gcc/ChangeLog
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48235.c [new file with mode: 0644]