From: Eric Botcazou Date: Wed, 16 Apr 2014 23:31:30 +0000 (+0000) Subject: final.c (compute_alignments): Do not apply loop alignment to a block falling through... X-Git-Tag: releases/gcc-5.1.0~8080 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b9c0158be32542295d88f64d1076f501ad4fff;p=thirdparty%2Fgcc.git final.c (compute_alignments): Do not apply loop alignment to a block falling through to the exit. * final.c (compute_alignments): Do not apply loop alignment to a block falling through to the exit. From-SVN: r209451 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe2d1edc1dd4..7865b8ac13f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-04-16 Eric Botcazou + + * final.c (compute_alignments): Do not apply loop alignment to a block + falling through to the exit. + 2014-04-16 Catherine Moore * mips.md (*mov_internal, *movhi_internal, *movqi_internal): diff --git a/gcc/final.c b/gcc/final.c index 83abee20873e..b4b96b973013 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -775,6 +775,8 @@ compute_alignments (void) /* In case block is frequent and reached mostly by non-fallthru edge, align it. It is most likely a first block of loop. */ if (has_fallthru + && !(single_succ_p (bb) + && single_succ (bb) == EXIT_BLOCK_PTR_FOR_FN (cfun)) && optimize_bb_for_speed_p (bb) && branch_frequency + fallthru_frequency > freq_threshold && (branch_frequency