From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0892D3858D35; Sat, 1 Jul 2023 21:50:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0892D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688248224; bh=SuspWqhCI5Tjr3DoF6oshiTZPRiQJE8whQQiS5rr5c0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZqFouRW7gTPpKBYMsEsmrwYhH8kK5WADVz38+8IaPH9c0VYrxvuhw7CKaG4MBni0k hxi/VDLGj9brhsucAEERM7rto2rP3tZdrtnVwep5TQWnW4URYbhqUV20lb+MGUamQN ocqKxbnn4irQWZaVF/UeGWXJDY1XfSWkOkJakC74= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110228] [13/14 Regression] llvm-16 miscompiled due to an maybe uninitialized variable Date: Sat, 01 Jul 2023 21:50:23 +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: 14.0 X-Bugzilla-Keywords: wrong-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.2 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=3D110228 --- Comment #23 from Andrew Pinski --- (In reply to Andrew Pinski from comment #22) > (In reply to Zhendong Su from comment #21) > > Another very likely related reproducer. > Yes: > [local count: 82077551]: > a.0_1 =3D a; > _27 =3D a.0_1 =3D=3D 0; > _5 =3D (int) _27; > _28 =3D _5 | i_14; > pretmp_45 =3D b; > ... > [local count: 200189151]: > # i_14 =3D PHI I wonder if ccp1 in this case could cause the 1 to proped out of the loop. = and maybe we need some more isolation going on when it comes to using uninitial= ized variables ...=