[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Fix me.
Martin Liska
marxin@gcc.gnu.org
Wed Dec 8 18:25:52 GMT 2021
https://gcc.gnu.org/g:1fae85640030b9d102ff4c41039c3957e0fca1d4
commit 1fae85640030b9d102ff4c41039c3957e0fca1d4
Author: Martin Liska <mliska@suse.cz>
Date: Wed Dec 1 15:03:19 2021 +0100
Fix me.
Diff:
---
gcc/tree-ssa-loop-unswitch.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 1bcbb2ef3b2..9a0ecb6f999 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -386,7 +386,10 @@ find_range_for_lhs (predicate_vector &predicate_path, tree lhs,
bool true_edge = predicate_path[i].second;
if (operand_equal_p (predicate->lhs, lhs, 0))
- range = true_edge ? predicate->true_range : predicate->false_range;
+ {
+ range = true_edge ? predicate->true_range : predicate->false_range;
+ return;
+ }
}
}
More information about the Gcc-cvs
mailing list