public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix thinko.
@ 2021-12-07 15:22 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-12-07 15:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:556e9ba57adb6bb31b537619bfc998881df96de5
commit 556e9ba57adb6bb31b537619bfc998881df96de5
Author: Martin Liska <mliska@suse.cz>
Date: Tue Dec 7 16:13:05 2021 +0100
Fix thinko.
Diff:
---
gcc/tree-ssa-loop-unswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index c6b5cee3fb5..9e6aa49a6f2 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -553,7 +553,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt,
int_range_max path_range;
if (find_range_for_lhs (predicate_path, lhs, path_range)
- && path_range.undefined_p ()
+ && !path_range.undefined_p ()
&& fold_range (r, stmt, path_range)
&& r.singleton_p ())
return r.zero_p () ? boolean_false_node : boolean_true_node;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-07 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 15:22 [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix thinko Martin Liska
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).