public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/guojiufu/heads/personal-branch)] change <max to <=max
@ 2021-06-22 2:36 Jiu Fu Guo
0 siblings, 0 replies; only message in thread
From: Jiu Fu Guo @ 2021-06-22 2:36 UTC (permalink / raw)
To: gcc-cvs
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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-22 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 2:36 [gcc(refs/users/guojiufu/heads/personal-branch)] change <max to <=max Jiu Fu Guo
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).