Re: bb-reorder maintenance [2/n]

2011-07-18 Thread Richard Henderson
On 07/18/2011 12:09 PM, Steven Bosscher wrote: > On Mon, Jul 18, 2011 at 8:48 PM, Richard Henderson wrote: >> Split out a helper subroutine to insert a barrier, >> after we've modified a basic block to not fallthru. > > Huh, aren't barriers emitted automatically when going out of cfglayout mode??

Re: bb-reorder maintenance [2/n]

2011-07-18 Thread Richard Henderson
On 07/18/2011 12:09 PM, Steven Bosscher wrote: > On Mon, Jul 18, 2011 at 8:48 PM, Richard Henderson wrote: >> Split out a helper subroutine to insert a barrier, >> after we've modified a basic block to not fallthru. > > Huh, aren't barriers emitted automatically when going out of cfglayout mode??

Re: bb-reorder maintenance [2/n]

2011-07-18 Thread Steven Bosscher
On Mon, Jul 18, 2011 at 8:48 PM, Richard Henderson wrote: > Split out a helper subroutine to insert a barrier, > after we've modified a basic block to not fallthru. Huh, aren't barriers emitted automatically when going out of cfglayout mode?? Ciao! Steven

bb-reorder maintenance [2/n]

2011-07-18 Thread Richard Henderson
Split out a helper subroutine to insert a barrier, after we've modified a basic block to not fallthru. Tested on x86_64-linux and committed. r~ * bb-reorder.c (emit_barrier_after_bb): Split out of ... (add_labels_and_missing_jumps): ... here. (fix_up_fall_thru_edges, fix_