aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-ch.cc')
-rw-r--r--gcc/tree-ssa-loop-ch.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-ch.cc b/gcc/tree-ssa-loop-ch.cc
index 83c2c1c..692e8ce 100644
--- a/gcc/tree-ssa-loop-ch.cc
+++ b/gcc/tree-ssa-loop-ch.cc
@@ -79,15 +79,15 @@ entry_loop_condition_is_static (class loop *l, gimple_ranger *ranger)
if (!loop_exit_edge_p (l, true_e) && !loop_exit_edge_p (l, false_e))
return false;
- tree desired_static_value;
+ int_range<1> desired_static_range;
if (loop_exit_edge_p (l, true_e))
- desired_static_value = boolean_false_node;
+ desired_static_range = range_false ();
else
- desired_static_value = boolean_true_node;
+ desired_static_range = range_true ();
int_range<2> r;
edge_range_query (r, e, last, *ranger);
- return r == int_range<2> (desired_static_value, desired_static_value);
+ return r == desired_static_range;
}
/* Check whether we should duplicate HEADER of LOOP. At most *LIMIT