diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-09-20 18:56:12 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2004-09-20 18:56:12 +0200 |
commit | 096759ebeca0c3c30de5d37bd53da80020eff2af (patch) | |
tree | 375c5aa144859d99d79a0a057566e33f350288df /gcc | |
parent | 1cdcb2cfd16e771b7a5a452099a4b5a933083351 (diff) | |
download | gcc-096759ebeca0c3c30de5d37bd53da80020eff2af.zip gcc-096759ebeca0c3c30de5d37bd53da80020eff2af.tar.gz gcc-096759ebeca0c3c30de5d37bd53da80020eff2af.tar.bz2 |
* predict.c (expr_expected_value): Use *_CLASS_P macros.
From-SVN: r87763
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/predict.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69fd932..ec5ed79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-09-20 Jakub Jelinek <jakub@redhat.com> + + * predict.c (expr_expected_value): Use *_CLASS_P macros. + 2004-09-20 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid diff --git a/gcc/predict.c b/gcc/predict.c index d344907..c0e7df2 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -944,8 +944,7 @@ expr_expected_value (tree expr, bitmap visited) return TREE_VALUE (TREE_CHAIN (TREE_OPERAND (expr, 1))); } } - if (TREE_CODE_CLASS (TREE_CODE (expr)) == '2' - || TREE_CODE_CLASS (TREE_CODE (expr)) == '<') + if (BINARY_CLASS_P (expr) || COMPARISON_CLASS_P (expr)) { tree op0, op1, res; op0 = expr_expected_value (TREE_OPERAND (expr, 0), visited); @@ -959,7 +958,7 @@ expr_expected_value (tree expr, bitmap visited) return res; return NULL; } - if (TREE_CODE_CLASS (TREE_CODE (expr)) == '1') + if (UNARY_CLASS_P (expr)) { tree op0, res; op0 = expr_expected_value (TREE_OPERAND (expr, 0), visited); |