diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-05-19 16:20:23 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-05-20 05:04:47 +0000 |
commit | 7bde4c3dcdecac82e080731fc8bb362e6c024628 (patch) | |
tree | cbf302f6da748f79dcbe059acee91c3dbb4fe858 /gcc/fold-const.h | |
parent | 55914b016de8c8514c58eb59822677a69e44135c (diff) | |
download | gcc-7bde4c3dcdecac82e080731fc8bb362e6c024628.zip gcc-7bde4c3dcdecac82e080731fc8bb362e6c024628.tar.gz gcc-7bde4c3dcdecac82e080731fc8bb362e6c024628.tar.bz2 |
Move fold_single_bit_test to expr.cc from fold-const.cc
This is part 1 of N patch set that will change the expansion
of `(A & C) != 0` from using trees to directly expanding so later
on we can do some cost analysis.
Since the only user of fold_single_bit_test is now
expand, move it to there.
gcc/ChangeLog:
* fold-const.cc (fold_single_bit_test_into_sign_test): Move to
expr.cc.
(fold_single_bit_test): Likewise.
* expr.cc (fold_single_bit_test_into_sign_test): Move from fold-const.cc
(fold_single_bit_test): Likewise and make static.
* fold-const.h (fold_single_bit_test): Remove declaration.
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r-- | gcc/fold-const.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h index b828bad..24c50fc 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -92,7 +92,6 @@ extern bool fold_convertible_p (const_tree, const_tree); #define fold_convert(T1,T2)\ fold_convert_loc (UNKNOWN_LOCATION, T1, T2) extern tree fold_convert_loc (location_t, tree, tree); -extern tree fold_single_bit_test (location_t, enum tree_code, tree, tree, tree); extern tree fold_ignored_result (tree); extern tree fold_abs_const (tree, tree); extern tree fold_indirect_ref_1 (location_t, tree, tree); |