diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-05-14 16:40:54 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-05-15 08:50:17 +0200 |
commit | d1b1758148ec408045d7d82efaa24188e2778f60 (patch) | |
tree | 16646aeab771d4aaf00da0f1e4f204c1662a0516 /gcc | |
parent | 9fde43096e734314d7fcde37407700fb9e853d8a (diff) | |
download | gcc-d1b1758148ec408045d7d82efaa24188e2778f60.zip gcc-d1b1758148ec408045d7d82efaa24188e2778f60.tar.gz gcc-d1b1758148ec408045d7d82efaa24188e2778f60.tar.bz2 |
Turn off simplify_conversion_using_ranges when rvrp1 IL changes are enabled.
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/vr-values.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 8383f8b..13d5934 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -4007,6 +4007,12 @@ simplify_conversion_using_ranges (gimple_stmt_iterator *gsi, gimple *stmt) || SSA_NAME_OCCURS_IN_ABNORMAL_PHI (innerop)) return false; + // 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) + return false; + /* Get the value-range of the inner operand. Use get_range_info in case innerop was created during substitute-and-fold. */ wide_int imin, imax; |