https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032
--- Comment #4 from Andrey Belevantsev <abel at gcc dot gnu.org> --- Author: abel Date: Thu Mar 31 14:01:22 2016 New Revision: 234624 URL: https://gcc.gnu.org/viewcvs?rev=234624&root=gcc&view=rev Log: Backport from mainline 2016-03-15 Andrey Belevantsev <a...@ispras.ru> gcc/ PR rtl-optimization/69032 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when looping backwards over basic block insns. testsuite/ PR rtl-optimization/69032 * gcc.dg/pr69032.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr69032.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/sel-sched-ir.c branches/gcc-5-branch/gcc/testsuite/ChangeLog