public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/loop-unswitching-switch-v5)] Add missing update_stmt.
@ 2021-11-08 16:40 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-11-08 16:40 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ab516cc5de2f736f779c3a290e523057ffa39266
commit ab516cc5de2f736f779c3a290e523057ffa39266
Author: Martin Liska <mliska@suse.cz>
Date: Mon Nov 8 17:40:13 2021 +0100
Add missing update_stmt.
Diff:
---
gcc/tree-ssa-loop-unswitch.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 1d169802252..45d53f5a6da 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -435,6 +435,7 @@ tree_unswitch_single_loop (class loop *loop, int num)
{
gimple_cond_set_condition_from_tree (condition,
boolean_true_node);
+ update_stmt (condition);
changed = true;
}
else if (integer_zerop (cond))
@@ -442,6 +443,7 @@ tree_unswitch_single_loop (class loop *loop, int num)
/* Remove true path. */
gimple_cond_set_condition_from_tree (condition,
boolean_false_node);
+ update_stmt (condition);
changed = true;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-08 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 16:40 [gcc(refs/users/marxin/heads/loop-unswitching-switch-v5)] Add missing update_stmt 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).