diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-07-05 13:22:18 +0200 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2023-07-05 16:58:17 +0200 |
commit | a4778dbd935d4e26b41e5c0e6191b7311457b239 (patch) | |
tree | e16738bc454207d60d785c0161d382c1cf856cc7 /libgcc | |
parent | c30efd8cd634f8a59bc1bf52e71d8866bf52d56c (diff) | |
download | gcc-a4778dbd935d4e26b41e5c0e6191b7311457b239.zip gcc-a4778dbd935d4e26b41e5c0e6191b7311457b239.tar.gz gcc-a4778dbd935d4e26b41e5c0e6191b7311457b239.tar.bz2 |
sched: Change return type of predicate functions from int to bool
Also change some internal variables to bool.
gcc/ChangeLog:
* sched-int.h (struct haifa_sched_info): Change can_schedule_ready_p,
scehdule_more_p and contributes_to_priority indirect frunction
type from int to bool.
(no_real_insns_p): Change return type from int to bool.
(contributes_to_priority): Ditto.
* haifa-sched.cc (no_real_insns_p): Change return type from
int to bool and adjust function body accordingly.
* modulo-sched.cc (try_scheduling_node_in_cycle): Change "success"
variable type from int to bool.
(ps_insn_advance_column): Change return type from int to bool.
(ps_has_conflicts): Ditto. Change "has_conflicts"
variable type from int to bool.
* sched-deps.cc (deps_may_trap_p): Change return type from int to bool.
(conditions_mutex_p): Ditto.
* sched-ebb.cc (schedule_more_p): Ditto.
(ebb_contributes_to_priority): Change return type from
int to bool and adjust function body accordingly.
* sched-rgn.cc (is_cfg_nonregular): Ditto.
(check_live_1): Ditto.
(is_pfree): Ditto.
(find_conditional_protection): Ditto.
(is_conditionally_protected): Ditto.
(is_prisky): Ditto.
(is_exception_free): Ditto.
(haifa_find_rgns): Change "unreachable" and "too_large_failure"
variables from int to bool.
(extend_rgns): Change "rescan" variable from int to bool.
(check_live): Change return type from
int to bool and adjust function body accordingly.
(can_schedule_ready_p): Ditto.
(schedule_more_p): Ditto.
(contributes_to_priority): Ditto.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions