re PR target/43920 (Choosing conditional execution over conditional branches for...
authorTom de Vries <tom@codesourcery.com>
Thu, 7 Apr 2011 08:35:23 +0000 (08:35 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 7 Apr 2011 08:35:23 +0000 (08:35 +0000)
commit823918aef31c377e62be41dc4712aea11d82ef69
tree0d6feadff61e87b1d3b25cad1e195ea520028364
parent472c95f5af0a86d073d305c2328acac19dd784bc
re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-07  Tom de Vries  <tom@codesourcery.com>

PR target/43920
* cfgcleanup.c (walk_to_nondebug_insn): New function.
(flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1 and
bb2.
(try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not src1
or src2.  Redirect edges to the last basic block.  Update frequency and
count on multiple basic blocks in case of fallthru.

From-SVN: r172091
gcc/ChangeLog
gcc/cfgcleanup.c