From: Martin Liska Date: Mon, 30 Nov 2020 10:10:28 +0000 (+0100) Subject: gimple ISEL: fix BB stmt iteration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5877c544c18259e6f8a07ec99e22bbfe8c6d64a6;p=gcc.git 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. --- 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; } }