Re: [PATCH] Fix rtl_split_edge (PR rtl-optimization/65761)

2015-04-14 Thread Steven Bosscher
On Tue, Apr 14, 2015 at 2:58 PM, Jakub Jelinek wrote: > PR rtl-optimization/65761 > * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use > get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)). > > --- gcc/cfgrtl.c.jj 2015-04-12 21:50:18.0 +0200 > +

[PATCH] Fix rtl_split_edge (PR rtl-optimization/65761)

2015-04-14 Thread Jakub Jelinek
Hi! On the testcase from the PR (not suitable for testsuite, as it is -fprofile-use only with *.gcda required and thus hard to reduce), we ICE because rtl_split_edge decided to insert a new basic block in between a tablejump instruction and corresponding jump table. Fixed by using get_last_bb_insn