diff options
author | Martin Liska <mliska@suse.cz> | 2022-02-03 10:58:18 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-05-09 10:39:55 +0200 |
commit | 22d9c8802add09a93308319fc37dd3a0f1125393 (patch) | |
tree | 1b15e7fe5c3bbb56688e2eb29aa1c7c1f317a4a9 /gcc/domwalk.cc | |
parent | 27239e13b1ba383e2706231917062aa6e14150a8 (diff) | |
download | gcc-22d9c8802add09a93308319fc37dd3a0f1125393.zip gcc-22d9c8802add09a93308319fc37dd3a0f1125393.tar.gz gcc-22d9c8802add09a93308319fc37dd3a0f1125393.tar.bz2 |
Come up with {,UN}LIKELY macros.
gcc/c/ChangeLog:
* c-parser.cc (c_parser_conditional_expression): Use {,UN}LIKELY
macros.
(c_parser_binary_expression): Likewise.
gcc/cp/ChangeLog:
* cp-gimplify.cc (cp_genericize_r): Use {,UN}LIKELY
macros.
* parser.cc (cp_finalize_omp_declare_simd): Likewise.
(cp_finalize_oacc_routine): Likewise.
gcc/ChangeLog:
* system.h (LIKELY): Define.
(UNLIKELY): Likewise.
* domwalk.cc (sort_bbs_postorder): Use {,UN}LIKELY
macros.
* dse.cc (set_position_unneeded): Likewise.
(set_all_positions_unneeded): Likewise.
(any_positions_needed_p): Likewise.
(all_positions_needed_p): Likewise.
* expmed.cc (flip_storage_order): Likewise.
* genmatch.cc (dt_simplify::gen_1): Likewise.
* ggc-common.cc (gt_pch_save): Likewise.
* print-rtl.cc: Likewise.
* rtl-iter.h (T>::array_type::~array_type): Likewise.
(T>::next): Likewise.
* rtl-ssa/internals.inl: Likewise.
* rtl-ssa/member-fns.inl: Likewise.
* rtlanal.cc (T>::add_subrtxes_to_queue): Likewise.
(rtx_properties::try_to_add_dest): Likewise.
* rtlanal.h (growing_rtx_properties::repeat): Likewise.
(vec_rtx_properties_base::~vec_rtx_properties_base): Likewise.
* simplify-rtx.cc (simplify_replace_fn_rtx): Likewise.
* sort.cc (likely): Likewise.
(mergesort): Likewise.
* wide-int.h (wi::eq_p): Likewise.
(wi::ltu_p): Likewise.
(wi::cmpu): Likewise.
(wi::bit_and): Likewise.
(wi::bit_and_not): Likewise.
(wi::bit_or): Likewise.
(wi::bit_or_not): Likewise.
(wi::bit_xor): Likewise.
(wi::add): Likewise.
(wi::sub): Likewise.
Diffstat (limited to 'gcc/domwalk.cc')
-rw-r--r-- | gcc/domwalk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/domwalk.cc b/gcc/domwalk.cc index 9d04cc2..d633088 100644 --- a/gcc/domwalk.cc +++ b/gcc/domwalk.cc @@ -144,13 +144,13 @@ cmp_bb_postorder (const void *a, const void *b, void *data) static void sort_bbs_postorder (basic_block *bbs, int n, int *bb_postorder) { - if (__builtin_expect (n == 2, true)) + if (LIKELY (n == 2)) { basic_block bb0 = bbs[0], bb1 = bbs[1]; if (bb_postorder[bb0->index] < bb_postorder[bb1->index]) bbs[0] = bb1, bbs[1] = bb0; } - else if (__builtin_expect (n == 3, true)) + else if (LIKELY (n == 3)) { basic_block bb0 = bbs[0], bb1 = bbs[1], bb2 = bbs[2]; if (bb_postorder[bb0->index] < bb_postorder[bb1->index]) |