[gcc(refs/users/acsawdey/heads/memcpy-unaligned-vsx)] Adjust vrp_evaluate_conditional for irange API.

Aaron Sawdey acsawdey@gcc.gnu.org
Mon Aug 10 23:16:19 GMT 2020


https://gcc.gnu.org/g:01aa5fcad27f87af833a003cf7b014bf9627e48c

commit 01aa5fcad27f87af833a003cf7b014bf9627e48c
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Aug 4 07:01:22 2020 +0200

    Adjust vrp_evaluate_conditional for irange API.
    
    gcc/ChangeLog:
    
            * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
            for irange API.

Diff:
---
 gcc/vr-values.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/vr-values.c b/gcc/vr-values.c
index 1190fa96453..90ba8fca246 100644
--- a/gcc/vr-values.c
+++ b/gcc/vr-values.c
@@ -2495,11 +2495,7 @@ simplify_using_ranges::vrp_evaluate_conditional (tree_code code, tree op0,
       tree type = TREE_TYPE (op0);
       const value_range_equiv *vr0 = get_value_range (op0);
 
-      if (vr0->kind () == VR_RANGE
-	  && INTEGRAL_TYPE_P (type)
-	  && vrp_val_is_min (vr0->min ())
-	  && vrp_val_is_max (vr0->max ())
-	  && is_gimple_min_invariant (op1))
+      if (vr0->varying_p () && INTEGRAL_TYPE_P (type))
 	{
 	  location_t location;


More information about the Gcc-cvs mailing list