From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 335833858D35; Wed, 15 Feb 2023 16:14:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 335833858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676477658; bh=rp+Vp5xHR4DzRbYzxS8lzT3l7Xg0+YXmI5m1YJrW9uA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qxwkaBKYKA4loNsO/pSuxyKGE7vIid6xO2fat/xDANipZA1vTG098K9HSesytZDpB 1zEpR2r04bVAjit5oLDmOuBr8AiUb6mM+AlZ+6Jx93BH4R4P59po0/xJPnxNO/m3lB VasSKSS3ubQY/BqO7VexlpJAH6VsmpOXeehvxSKM= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108685] [10/11/12/13 Regression] ICE in verify_loop_structure, at cfgloop.cc:1748 since r13-2388-ga651e6d59188da Date: Wed, 15 Feb 2023 16:14:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108685 --- Comment #5 from Jakub Jelinek --- Though, we have such code already: if (broken_loop) { int i; for (i =3D fd->collapse; i < fd->ordered; i++) { tree type =3D TREE_TYPE (fd->loops[i].v); tree this_cond =3D fold_build2 (fd->loops[i].cond_code, boolean_type_node, fold_convert (type, fd->loops[i].n1), fold_convert (type, fd->loops[i].n2)); if (!integer_onep (this_cond)) break; } if (i < fd->ordered) { cont_bb =3D create_empty_bb (EXIT_BLOCK_PTR_FOR_FN (cfun)->prev_bb); add_bb_to_loop (cont_bb, l1_bb->loop_father); gimple_stmt_iterator gsi =3D gsi_after_labels (cont_bb); gimple *g =3D gimple_build_omp_continue (fd->loop.v, fd->loop= .v); gsi_insert_before (&gsi, g, GSI_SAME_STMT); make_edge (cont_bb, l3_bb, EDGE_FALLTHRU); make_edge (cont_bb, l1_bb, 0); l2_bb =3D create_empty_bb (cont_bb); broken_loop =3D false; } } and at least when the outermost for (;;) is missing, it works fine.=