Mohamed Shafi wrote:
This looks like reordering is proper. When schedule-insn2 is run for
the above region/block the no:of instructions in the region
(rgn_n_insns) is 3.

Maybe bb reorder got the basic block structure wrong, and the barrier is not supposed to be part of the basic block. In fact, looking at bb-reorder.c, I see this /* Make BB_END for cur_bb be the jump instruction (NOT the
                 barrier instruction at the end of the sequence...).  */

              BB_END (cur_bb) = jump_insn;
Maybe it is getting this wrong someplace else in the file. This might already be fixed in current sources, so you could try looking for an existing patch to fix it.

Jim

Reply via email to