[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Fix thinko.
Martin Liska
marxin@gcc.gnu.org
Wed Dec 8 10:17:51 GMT 2021
https://gcc.gnu.org/g:29519adc52b1433545d15461ec3056908d10fe76
commit 29519adc52b1433545d15461ec3056908d10fe76
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 6e5dc923fba..3de93925a10 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;
More information about the Gcc-cvs
mailing list