From 5877c544c18259e6f8a07ec99e22bbfe8c6d64a6 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 30 Nov 2020 11:10:28 +0100 Subject: [PATCH] gimple ISEL: fix BB stmt iteration gcc/ChangeLog: PR tree-optimization/98066 * gimple-isel.cc (gimple_expand_vec_exprs): Return when gimple_expand_vec_exprs replaces last stmt. --- gcc/gimple-isel.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/gimple-isel.cc b/gcc/gimple-isel.cc index 048b407bd11..d79c212748f 100644 --- a/gcc/gimple-isel.cc +++ b/gcc/gimple-isel.cc @@ -273,6 +273,8 @@ gimple_expand_vec_exprs (void) } gimple_expand_vec_set_expr (&gsi); + if (gsi_end_p (gsi)) + break; } } -- 2.30.2