Add statistical printout of rank_for_schedule decisions
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Thu, 7 Aug 2014 11:16:29 +0000 (11:16 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Thu, 7 Aug 2014 11:16:29 +0000 (11:16 +0000)
commit4bd12f3d25452f5673debe3558925b87410c7054
tree5dea20825fcf191f7c6f5d261341ae5b9122baa4
parent88366b18d690e8cd41dd4c47e96c5595ffcad8a2
Add statistical printout of rank_for_schedule decisions

* haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
(enum rfs_decition:RFS_*): New constants wrapped in an enum.
(rfs_str): String corresponding to RFS_* constants.
(rank_for_schedule_stats_t): New typedef.
(rank_for_schedule_stats): New static variable.
(rfs_result): New static function.
(rank_for_schedule): Track statistics for deciding heuristics.
(rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
static functions.
(ready_sort): Use them for debug printouts.
(schedule_block): Init statistics state.  Print statistics on
rank_for_schedule decisions.

From-SVN: r213709
gcc/ChangeLog
gcc/haifa-sched.c