public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jiu Fu Guo <guojiufu@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/guojiufu/heads/guojiufu-branch)] tree_int_cst_equal compare cst tree
Date: Wed,  9 Jun 2021 05:27:28 +0000 (GMT)	[thread overview]
Message-ID: <20210609052728.5D6A33848406@sourceware.org> (raw)

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

commit de3900d5d34f1f5f83e41293d0efc13fcc0b9033
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date:   Thu Jun 3 21:05:48 2021 +0800

    tree_int_cst_equal compare cst tree

Diff:
---
 gcc/tree-ssa-loop-split.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-ssa-loop-split.c b/gcc/tree-ssa-loop-split.c
index fa79c257167..44bb8056b5b 100644
--- a/gcc/tree-ssa-loop-split.c
+++ b/gcc/tree-ssa-loop-split.c
@@ -1639,8 +1639,8 @@ get_ne_cond_branch (struct loop *loop)
       /* Avoid to split if bound is MAX/MIN val.  */
       tree bound_type = TREE_TYPE (bnd);
       if (TREE_CODE (bnd) == INTEGER_CST && INTEGRAL_TYPE_P (bound_type)
-	  && (bnd == TYPE_MAX_VALUE (bound_type)
-	      || bnd == TYPE_MIN_VALUE (bound_type)))
+	  && (tree_int_cst_equal (bnd, TYPE_MAX_VALUE (bound_type))
+	      || tree_int_cst_equal (bnd, TYPE_MIN_VALUE (bound_type))))
 	continue;
 
       /* Check if there is possible wrap.  */


                 reply	other threads:[~2021-06-09  5:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210609052728.5D6A33848406@sourceware.org \
    --to=guojiufu@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).