public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aldyh/heads/ranger-relational)] Andrew change moving range_of_address out of range_of_range_op into fold_stmt.
@ 2021-04-23  5:43 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-04-23  5:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:beaee05c2829a38c3284d0b1717daaf69538e9a3

commit beaee05c2829a38c3284d0b1717daaf69538e9a3
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Thu Apr 22 22:12:28 2021 +0200

    Andrew change moving range_of_address out of range_of_range_op into fold_stmt.

Diff:
---
 gcc/gimple-range-fold.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/gimple-range-fold.cc b/gcc/gimple-range-fold.cc
index 5d62bd62682..90721120f8a 100644
--- a/gcc/gimple-range-fold.cc
+++ b/gcc/gimple-range-fold.cc
@@ -185,6 +185,10 @@ fold_using_range::fold_stmt (irange &r, gimple *s, op_source &src, tree name)
   if (!name)
     name = gimple_get_lhs (s);
 
+  if (gimple_code (s) == GIMPLE_ASSIGN
+      && gimple_assign_rhs_code (s) == ADDR_EXPR)
+    return range_of_address (r, s, src);
+
   if (gimple_range_handler (s))
     {
       res = range_of_range_op (r, s, src);
@@ -244,10 +248,6 @@ fold_using_range::range_of_range_op (irange &r, gimple *s, op_source &src)
   tree op1 = gimple_range_operand1 (s);
   tree op2 = gimple_range_operand2 (s);
 
-  if (gimple_code (s) == GIMPLE_ASSIGN
-      && gimple_assign_rhs_code (s) == ADDR_EXPR)
-    return range_of_address (r, s, src);
-
   if (src.get_operand (range1, op1))
     {
       if (!op2)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23  5:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  5:43 [gcc(refs/users/aldyh/heads/ranger-relational)] Andrew change moving range_of_address out of range_of_range_op into fold_stmt 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).