PR rtl-optimization/48235
authoramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2011 11:58:23 +0000 (11:58 +0000)
committeramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2011 11:58:23 +0000 (11:58 +0000)
commit8ff642e9b42471b6141564480c7d5a08ad75956a
tree1fa6f7e96f6d0620dc73960c0139cec0127e43c0
parentb73edd22fdbdef327dff73be8ba6c107cac135bd
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172177 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48235.c [new file with mode: 0644]