From: Aldy Hernandez Date: Tue, 4 Aug 2020 09:19:39 +0000 (+0200) Subject: Add is_gimple_min_invariant dropped from previous patch. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e87475935488da07c6958bd902d95abb53bc18;p=thirdparty%2Fgcc.git Add is_gimple_min_invariant dropped from previous patch. gcc/ChangeLog: * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Call is_gimple_min_invariant dropped from previous patch. --- diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 2fd4956a2e4c..511342f2f132 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -2495,7 +2495,9 @@ 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->varying_p () && INTEGRAL_TYPE_P (type)) + if (vr0->varying_p () + && INTEGRAL_TYPE_P (type) + && is_gimple_min_invariant (op1)) { location_t location;