https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032
--- Comment #3 from Andrey Belevantsev <abel at gcc dot gnu.org> --- Author: abel Date: Tue Mar 15 15:42:07 2016 New Revision: 234219 URL: https://gcc.gnu.org/viewcvs?rev=234219&root=gcc&view=rev Log: 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: trunk/gcc/testsuite/gcc.dg/pr69032.c Modified: trunk/gcc/ChangeLog trunk/gcc/sel-sched-ir.c trunk/gcc/testsuite/ChangeLog