From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 18C663858D37; Wed, 21 Sep 2022 09:19:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18C663858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663751957; bh=f5acHQ4MWFAPrvlANuh3Fo77N6xwA3AglnmpVGnMMAU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HMqbV0l9UlAvUNKE18yrZiLQk1jI7hhpouWw1eRlXNV4f2yNbM015DXWS28vjIQ3j 8TOX9HxVZ1NVZgyWStokOaMOkXTKpadRIb6IvtNRJ8aQidOCMw8qlm2PwAhdasSzWK 2HOJXLYwYDzlwyGPYKdaUp11382gsG2Bz2yFzyx8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106995] [13 Regression] ICE in expand_LOOP_VECTORIZED, at internal-fn.cc:2720 with -O2 since r13-1598-g0a7e721a6499a42f Date: Wed, 21 Sep 2022 09:19:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc 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=3D106995 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization CC| |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- The issue is that during if-conversion VN we figure the loop exit is unreachable and thus elide the loop but not the if (.LOOP_VECTORIZED) call = ... Region does not contain all edges into the entry block, skipping its PHIs. Processing block 0: BB8 Cannot trust state of predecessor edge 16 -> 8, marking executable Value numbering stmt =3D _9 =3D (long unsigned int) iftmp.0_11; Setting value number of _9 to _9 (changed) Making available beyond BB8 _9 for value _9 Value numbering stmt =3D _6 =3D a.1_8 <=3D 1; Setting value number of _6 to _6 (changed) Making available beyond BB8 _6 for value _6 Value numbering stmt =3D iftmp.0_12 =3D _6 ? iftmp.0_11 : 0; Setting value number of iftmp.0_12 to iftmp.0_12 (changed) Making available beyond BB8 iftmp.0_12 for value iftmp.0_12 Value numbering stmt =3D prephitmp_10 =3D _6 ? _9 : 0; Setting value number of prephitmp_10 to prephitmp_10 (changed) Making available beyond BB8 prephitmp_10 for value prephitmp_10 Value numbering stmt =3D if (prephitmp_10 !=3D 11) marking destination block 16 reachable probably a latent issue for a while.=