public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1088] Use get_range_query in simplify_conversion_using_ranges.
@ 2021-05-27 8:49 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-05-27 8:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:22137a3db85bee83c92cf23ba36fe0d08364afc2
commit r12-1088-g22137a3db85bee83c92cf23ba36fe0d08364afc2
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Thu May 27 10:43:11 2021 +0200
Use get_range_query in simplify_conversion_using_ranges.
Before the fix to the ranger dependency chain yesterday (commit
7f0cfeb1) I thought an ICE I was seeing was due to my get_range_query
patchet. This was not the case, but this small change crept in while I
was debugging the failure.
I'm reverting the change as was approved.
Tested on x86-64 Linux.
gcc/ChangeLog:
* vr-values.c (simplify_conversion_using_ranges): Use
get_range_query instead of get_global_range_query.
Diff:
---
gcc/vr-values.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/vr-values.c b/gcc/vr-values.c
index d283108b7c2..3d0be8edb3b 100644
--- a/gcc/vr-values.c
+++ b/gcc/vr-values.c
@@ -3837,7 +3837,7 @@ simplify_conversion_using_ranges (gimple_stmt_iterator *gsi, gimple *stmt)
value_range vr;
if (!INTEGRAL_TYPE_P (TREE_TYPE (innerop)))
return false;
- get_global_range_query ()->range_of_expr (vr, innerop, stmt);
+ get_range_query (cfun)->range_of_expr (vr, innerop, stmt);
if (vr.undefined_p () || vr.varying_p ())
return false;
innermin = widest_int::from (vr.lower_bound (), TYPE_SIGN (TREE_TYPE (innerop)));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-27 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 8:49 [gcc r12-1088] Use get_range_query in simplify_conversion_using_ranges Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).