]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Allow all types supported by ranger in loop-ch.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 27 Jun 2022 18:50:03 +0000 (20:50 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 28 Jun 2022 11:00:45 +0000 (13:00 +0200)
This converts the ranger use in loop-ch to allow any types allowed by
the ranger infrastructure.  Since the range of a GIMPLE_COND is always an
integer we can remove the check because the only temporary is already
an int_range.

gcc/ChangeLog:

* tree-ssa-loop-ch.cc (entry_loop_condition_is_static): Remove
irange::supports_p.

gcc/tree-ssa-loop-ch.cc

index c17a3e4b00433f21b9767d1479727ab297abcbe3..3b91a89eaf56f51bf0dae02bd86d4cf8c14c172c 100644 (file)
@@ -54,8 +54,7 @@ entry_loop_condition_is_static (class loop *l, path_range_query *query)
   edge e = loop_preheader_edge (l);
   gcond *last = safe_dyn_cast <gcond *> (last_stmt (e->dest));
 
-  if (!last
-      || !irange::supports_p (TREE_TYPE (gimple_cond_lhs (last))))
+  if (!last)
     return false;
 
   edge true_e, false_e;