From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5ED63858C50; Fri, 20 Jan 2023 21:15:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5ED63858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674249336; bh=BudTbvVog3MfHctDvBx8nheQYZ4SeCLilqjBLPv5G0U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lgEkhkfRsBskzYYRiLtXBcuPlWKY80heRUipIpAD8FJcGC1J/jJoBeK6D0LcQBIis DBuQJA9EFoEz1symw4dQ0AU8HZ7ZDO8AGw0958/VJuWpWMVm185/rfbCulT/yDngIO GqgH0Xo2th5Qjxnw9qVCTYvHq4OBmDEq7vO+kcSI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108482] [13 Regression] ice in expand_LOOP_DIST_ALIAS with -O3 -ftrivial-auto-var-init=zero Date: Fri, 20 Jan 2023 21:15:36 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 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=3D108482 --- Comment #3 from Andrew Pinski --- What is interesting is if we look at the IR: _41 =3D .LOOP_DIST_ALIAS (3, _40); if (_41 !=3D 0) goto ; [90.00%] else goto ; [10.00%] [local count: 430033601]: _29 =3D *_4; _30 =3D (char) _29; _31 =3D _7 & _30; goto ; [100.00%] [local count: 47781512]: _47 =3D *_4; _48 =3D (char) _47; _49 =3D _7 & _48; [local count: 118111600]: # _46 =3D PHI <_49(4), _31(3)> That code is the same on both edges even though not noticed being the same.=