From c76c23a0da27f6a5583490893b82a82002691a90 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Wed, 11 Nov 2020 09:05:32 +0100 Subject: [PATCH] Early exit on VR_VARYING from irange::set. gcc/ChangeLog: * value-range.cc (irange::set): Early exit on VR_VARYING. --- gcc/value-range.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/value-range.cc b/gcc/value-range.cc index b7ccba010e4..2b82dfe2a7b 100644 --- a/gcc/value-range.cc +++ b/gcc/value-range.cc @@ -249,7 +249,9 @@ irange::set (tree min, tree max, value_range_kind kind) return; } - if (POLY_INT_CST_P (min) || POLY_INT_CST_P (max)) + if (kind == VR_VARYING + || POLY_INT_CST_P (min) + || POLY_INT_CST_P (max)) { set_varying (TREE_TYPE (min)); return; -- 2.30.2