diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
commit | a926878ddbd5a98b272c22171ce58663fc04c3e0 (patch) | |
tree | 86af256e5d9a9c06263c00adc90e5fe348008c43 /gcc/regrename.c | |
parent | 542730f087133690b47e036dfd43eb0db8a650ce (diff) | |
parent | 07cbaed8ba7d1b6e4ab3a9f44175502a4e1ecdb1 (diff) | |
download | gcc-devel/autopar_devel.zip gcc-devel/autopar_devel.tar.gz gcc-devel/autopar_devel.tar.bz2 |
Merge branch 'autopar_rebase2' into autopar_develdevel/autopar_devel
Quickly commit changes in the rebase branch.
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r-- | gcc/regrename.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c index 669a6ea..ebe74c5 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -695,10 +695,12 @@ merge_chains (du_head_p c1, du_head_p c2) c1->cannot_rename |= c2->cannot_rename; } -/* Analyze the current function and build chains for renaming. */ +/* Analyze the current function and build chains for renaming. + If INCLUDE_ALL_BLOCKS_P is set to true, process all blocks, + ignoring BB_DISABLE_SCHEDULE. The default value is true. */ void -regrename_analyze (bitmap bb_mask) +regrename_analyze (bitmap bb_mask, bool include_all_block_p) { class bb_rename_info *rename_info; int i; @@ -748,6 +750,14 @@ regrename_analyze (bitmap bb_mask) if (dump_file) fprintf (dump_file, "\nprocessing block %d:\n", bb1->index); + if (!include_all_block_p && (bb1->flags & BB_DISABLE_SCHEDULE) != 0) + { + if (dump_file) + fprintf (dump_file, "avoid disrupting the sms schedule of bb %d\n", + bb1->index); + continue; + } + init_rename_info (this_info, bb1); success = build_def_use (bb1); @@ -1962,7 +1972,7 @@ regrename_optimize (void) regrename_init (false); - regrename_analyze (NULL); + regrename_analyze (NULL, false); rename_chains (); |