projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5220219
)
Adjust vrp_evaluate_conditional for irange API.
author
Aldy Hernandez
<aldyh@redhat.com>
Tue, 4 Aug 2020 05:01:22 +0000
(07:01 +0200)
committer
Aldy Hernandez
<aldyh@redhat.com>
Tue, 4 Aug 2020 05:23:42 +0000
(07:23 +0200)
gcc/ChangeLog:
* vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
for irange API.
gcc/vr-values.c
patch
|
blob
|
history
diff --git
a/gcc/vr-values.c
b/gcc/vr-values.c
index 1190fa9645316d5649115d36ae89ee771c16d738..90ba8fca246bb4b008c74ee379f544cef3fe3648 100644
(file)
--- a/
gcc/vr-values.c
+++ b/
gcc/vr-values.c
@@
-2495,11
+2495,7
@@
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->kind () == VR_RANGE
- && INTEGRAL_TYPE_P (type)
- && vrp_val_is_min (vr0->min ())
- && vrp_val_is_max (vr0->max ())
- && is_gimple_min_invariant (op1))
+ if (vr0->varying_p () && INTEGRAL_TYPE_P (type))
{
location_t location;