From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 19C3F3858D3C; Mon, 8 Nov 2021 16:40:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19C3F3858D3C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/loop-unswitching-switch-v5)] Add missing update_stmt. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitching-switch-v5 X-Git-Oldrev: a19c463ff704eaadc9b6a7ca328bfde13e0375f7 X-Git-Newrev: ab516cc5de2f736f779c3a290e523057ffa39266 Message-Id: <20211108164025.19C3F3858D3C@sourceware.org> Date: Mon, 8 Nov 2021 16:40:25 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2021 16:40:25 -0000 https://gcc.gnu.org/g:ab516cc5de2f736f779c3a290e523057ffa39266 commit ab516cc5de2f736f779c3a290e523057ffa39266 Author: Martin Liska 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; } }