Remove value_range_constant_singleton

Richard Biener richard.guenther@gmail.com
Tue Jun 11 13:32:00 GMT 2019


On Tue, Jun 11, 2019 at 12:27 PM Aldy Hernandez <aldyh@redhat.com> wrote:
>
> We already have value_range::singleton_p.  No need for a separate
> external function with the same functionality.
>
> OK?

OK.

Shame that there isn't some nicer syntax for

-  return value_range_constant_singleton (get_value_range (op));
+  tree t;
+  if (get_value_range (op)->singleton_p (&t))
+    return t;
+  return NULL;

Richard.



More information about the Gcc-patches mailing list