diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2013-11-10 19:38:36 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2013-11-10 19:38:36 +0100 |
commit | 611a4849b4d0f5ae97f3e702a856db6f183bb84f (patch) | |
tree | 201bef40495be7b1b52fb02996ff61d429c759c4 /gcc/mode-switching.c | |
parent | cabeea52a72a20a2c286cdae5598c191da7bb25e (diff) | |
download | gcc-611a4849b4d0f5ae97f3e702a856db6f183bb84f.zip gcc-611a4849b4d0f5ae97f3e702a856db6f183bb84f.tar.gz gcc-611a4849b4d0f5ae97f3e702a856db6f183bb84f.tar.bz2 |
mode-switching.c (optimize_mode_switching): Mark block as nontransparent, if last_mode at block exit is different from no_mode.
* mode-switching.c (optimize_mode_switching): Mark block as
nontransparent, if last_mode at block exit is different from no_mode.
From-SVN: r204649
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r-- | gcc/mode-switching.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c index 0b08998..d54f32c 100644 --- a/gcc/mode-switching.c +++ b/gcc/mode-switching.c @@ -571,12 +571,15 @@ optimize_mode_switching (void) info[bb->index].computing = last_mode; /* Check for blocks without ANY mode requirements. - N.B. because of MODE_AFTER, last_mode might still be different - from no_mode. */ + N.B. because of MODE_AFTER, last_mode might still + be different from no_mode, in which case we need to + mark the block as nontransparent. */ if (!any_set_required) { ptr = new_seginfo (no_mode, BB_END (bb), bb->index, live_now); add_seginfo (info + bb->index, ptr); + if (last_mode != no_mode) + bitmap_clear_bit (transp[bb->index], j); } } #if defined (MODE_ENTRY) && defined (MODE_EXIT) |