diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-08-04 11:19:39 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-08-04 11:25:11 +0200 |
commit | d79d9445d69a20a0e0361fb47584bbb8f5c6e84b (patch) | |
tree | f67c25f8cabde7cca4a50e8ca9787d54ee900cdc /gcc | |
parent | 29e0ad452cdf001bccd12c1cb5f4797df1114a3a (diff) | |
download | gcc-d79d9445d69a20a0e0361fb47584bbb8f5c6e84b.zip gcc-d79d9445d69a20a0e0361fb47584bbb8f5c6e84b.tar.gz gcc-d79d9445d69a20a0e0361fb47584bbb8f5c6e84b.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/vr-values.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 2fd4956..511342f 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; |