From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63F513858D35; Wed, 15 Feb 2023 18:56:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63F513858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676487378; bh=xj0X20hAieOPaxhrRp302GnycE22Coo9AnhilUfuK64=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Nu72bhiLY+oPsTT0fqJNMI9KSfgdkE9JjCNgfIwZNjmDVksqmfhSKZdybilPV1zTl RAOGNPDQJeFrWqSzQNzieSvQjOJWtbniDLBoMwldFlDDAWpeuknbzXoVPf6lyJCNNs 5tSXsnkft7hoNNGQu8CDoaBmfoStLOUyVHavDl9M= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108657] [13 Regression] csmith: possible wrong checksum with -O3 and -ftrivial-auto-var-init=zero Date: Wed, 15 Feb 2023 18:56:18 +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: needs-reduction, wrong-code 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: 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=3D108657 --- Comment #19 from Jakub Jelinek --- With the deferred stuff (why don't we DCE it for variables which are otherw= ise not used?), all looks fine until fre5. In fre4 we have k =3D{v} {CLOBBER(eol)}; c =3D -1; c =3D 1; foo (); return 0; at the end which is reasonable, the outer loop iterates c =3D 1, c =3D 0 an= d c =3D -1 and then c =3D 1 is stored, dse4 optimizes it to: k =3D{v} {CLOBBER(eol)}; c =3D 1; foo (); return 0; in split-path, we have in bb2 c =3D 1; then in one of the conditionalized bbs c =3D 0; and finally still [local count: 38651690]: k =3D{v} {CLOBBER(eol)}; c =3D 1; foo (); return 0; at the end, but fre5 keeps those c =3D 1; and c =3D 0; early stores and dro= ps the last one.=