aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-05-15 14:14:15 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-05-15 14:14:15 +0000
commitaf205f678d2d6ac9043daa70c4caefdd76cd65bc (patch)
treefa7f8529c4634be7caa170a0bcfcd4fd08a639c8 /gcc/function.h
parent9adcfa3c1f4f3194b50c893f06bb52f1058aebe8 (diff)
downloadgcc-af205f678d2d6ac9043daa70c4caefdd76cd65bc.zip
gcc-af205f678d2d6ac9043daa70c4caefdd76cd65bc.tar.gz
gcc-af205f678d2d6ac9043daa70c4caefdd76cd65bc.tar.bz2
function.h (has_bb_partition): New rtl_data flag.
2013-05-15 Teresa Johnson <tejohnson@google.com> * function.h (has_bb_partition): New rtl_data flag. (bb_reorder_complete): Ditto. * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition instead of flag_reorder_blocks_and_partition. * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c, with some enhancements. (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping. * bb-reorder.c (connect_traces): Check for has_bb_partition instead of flag_reorder_blocks_and_partition. (verify_hot_cold_block_grouping): Moved to cfgrtl.c. (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to verify_hot_cold_block_grouping. (partition_hot_cold_basic_blocks): Set has_bb_partition. From-SVN: r198934
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h
index c0e42d3..c651f50 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -446,6 +446,15 @@ struct GTY(()) rtl_data {
sched2) and is useful only if the port defines LEAF_REGISTERS. */
bool uses_only_leaf_regs;
+ /* Nonzero if the function being compiled has undergone hot/cold partitioning
+ (under flag_reorder_blocks_and_partition) and has at least one cold
+ block. */
+ bool has_bb_partition;
+
+ /* Nonzero if the function being compiled has completed the bb reordering
+ pass. */
+ bool bb_reorder_complete;
+
/* Like regs_ever_live, but 1 if a reg is set or clobbered from an
asm. Unlike regs_ever_live, elements of this array corresponding
to eliminable regs (like the frame pointer) are set if an asm