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/personal-branch)] change <max to <=max
Date: Tue, 22 Jun 2021 02:36:42 +0000 (GMT)	[thread overview]
Message-ID: <20210622023642.8CEB83847814@sourceware.org> (raw)

https://gcc.gnu.org/g:92bef6fe067376d0db878fd21730f5facbead0d1

commit 92bef6fe067376d0db878fd21730f5facbead0d1
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date:   Mon Jun 21 10:47:41 2021 +0800

    change <max to <=max

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

diff --git a/gcc/tree-ssa-loop-split.c b/gcc/tree-ssa-loop-split.c
index b247afd51a1..bf9cee66e92 100644
--- a/gcc/tree-ssa-loop-split.c
+++ b/gcc/tree-ssa-loop-split.c
@@ -1818,8 +1818,9 @@ get_wrap_assumption (class loop *loop, edge *exit, idx_elements &data)
 	max_min_bnd = fold_convert (large_type, max_min_bnd);
 
       /* There is no wrap if bnd <= max value && base <= bnd.  */
+      enum tree_code expect_code1 = is_negative ? GE_EXPR : LE_EXPR;      
       tree no_wrap
-	= fold_build2 (expect_code, boolean_type_node, bnd, max_min_bnd);
+	= fold_build2 (expect_code1, boolean_type_node, bnd, max_min_bnd);
       no_wrap
 	= fold_build2 (TRUTH_AND_EXPR, boolean_type_node, no_wrap,
 		       fold_build2 (expect_code, boolean_type_node, base, bnd));


                 reply	other threads:[~2021-06-22  2:36 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=20210622023642.8CEB83847814@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).