[gcc(refs/users/guojiufu/heads/guojiufu-branch)] tree_int_cst_equal compare cst tree
Jiu Fu Guo
guojiufu@gcc.gnu.org
Wed Jun 9 05:27:28 GMT 2021
https://gcc.gnu.org/g:de3900d5d34f1f5f83e41293d0efc13fcc0b9033
commit de3900d5d34f1f5f83e41293d0efc13fcc0b9033
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date: Thu Jun 3 21:05:48 2021 +0800
tree_int_cst_equal compare cst tree
Diff:
---
gcc/tree-ssa-loop-split.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-loop-split.c b/gcc/tree-ssa-loop-split.c
index fa79c257167..44bb8056b5b 100644
--- a/gcc/tree-ssa-loop-split.c
+++ b/gcc/tree-ssa-loop-split.c
@@ -1639,8 +1639,8 @@ get_ne_cond_branch (struct loop *loop)
/* Avoid to split if bound is MAX/MIN val. */
tree bound_type = TREE_TYPE (bnd);
if (TREE_CODE (bnd) == INTEGER_CST && INTEGRAL_TYPE_P (bound_type)
- && (bnd == TYPE_MAX_VALUE (bound_type)
- || bnd == TYPE_MIN_VALUE (bound_type)))
+ && (tree_int_cst_equal (bnd, TYPE_MAX_VALUE (bound_type))
+ || tree_int_cst_equal (bnd, TYPE_MIN_VALUE (bound_type))))
continue;
/* Check if there is possible wrap. */
More information about the Gcc-cvs
mailing list