Where is scheduling going wrong? - GCC-4.1.2

Jim Wilson wilson@tuliptree.org
Fri Apr 11 18:44:00 GMT 2008


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



More information about the Gcc mailing list