sel-sched: fixup reset of first_insn (PR 85876)
authorAndrey Belevantsev <abel@ispras.ru>
Tue, 2 Apr 2019 15:39:22 +0000 (18:39 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 2 Apr 2019 15:39:22 +0000 (18:39 +0300)
commit7dc69ec076bf4baa128a1ee660014bfefe3828df
tree6a4c4969fc000c5ac257c5db95ba979607693dfe
parent43f47cdf13b6c1c7c648d0d04aa0404a7e899528
sel-sched: fixup reset of first_insn (PR 85876)

2019-04-02  Andrey Belevantsev  <abel@ispras.ru>

PR rtl-optimization/85876
* sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
beyond the original fence.

* gcc.dg/pr85876.c: New test.

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