aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssanames.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssanames.cc')
-rw-r--r--gcc/tree-ssanames.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-ssanames.cc b/gcc/tree-ssanames.cc
index b6cbf97..a510dfa 100644
--- a/gcc/tree-ssanames.cc
+++ b/gcc/tree-ssanames.cc
@@ -522,10 +522,9 @@ ssa_name_has_boolean_range (tree op)
if (INTEGRAL_TYPE_P (TREE_TYPE (op))
&& (TYPE_PRECISION (TREE_TYPE (op)) > 1))
{
- int_range<2> onezero (build_zero_cst (TREE_TYPE (op)),
- build_one_cst (TREE_TYPE (op)));
int_range<2> r;
- if (get_range_query (cfun)->range_of_expr (r, op) && r == onezero)
+ if (get_range_query (cfun)->range_of_expr (r, op)
+ && r == range_true_and_false (TREE_TYPE (op)))
return true;
if (wi::eq_p (get_nonzero_bits (op), 1))