diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-06-10 13:18:11 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-06-10 13:18:11 +0200 |
commit | 9c7dce1bc5fd90c660f9065cfdc10ea6c4742fdc (patch) | |
tree | 908255a8d54e986f5122fe2e91fc1ae65d28a33f /gcc/vr-values.c | |
parent | 784003f0d53fc19ae3a53be2dd57888422469c3a (diff) | |
download | gcc-9c7dce1bc5fd90c660f9065cfdc10ea6c4742fdc.zip gcc-9c7dce1bc5fd90c660f9065cfdc10ea6c4742fdc.tar.gz gcc-9c7dce1bc5fd90c660f9065cfdc10ea6c4742fdc.tar.bz2 |
Move evrp trapping conditional to its own function.
Diffstat (limited to 'gcc/vr-values.c')
-rw-r--r-- | gcc/vr-values.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 28911dc..5f9e64e 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -51,6 +51,7 @@ along with GCC; see the file COPYING3. If not see #include "cfghooks.h" #include "range-op.h" #include "gimple-range-stmt.h" +#include "misc.h" /* Set value range VR to a non-negative range of type TYPE. */ @@ -4010,7 +4011,7 @@ simplify_conversion_using_ranges (gimple_stmt_iterator *gsi, gimple *stmt) // FIXME: This conversion has nothing to do with ranges, and the way // it uses global ranges versus local ranges is interfering with our // ability to diagnose differences between evrp and rvrp1. - if (flag_rvrp1_changes > 0) + if (evrp_trap_p ()) return false; /* Get the value-range of the inner operand. Use get_range_info in |