From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B9533858C53; Fri, 1 Mar 2024 07:57:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B9533858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709279836; bh=QIr2w0PnF91xk7q55OEkl3oMdBqLxAknmLmrY66v2hk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aRebGqy6N5CbZ20kMzPQjcbpuf/ob90YarCGUzzKfiZu0bUhtLdUCEH+z11Fndfgv c1yc+/ROOlUbIBnEUR1Vga+ZJxe1wHn75exf6Q2AyKkyDSHfjeQyiSQpYZCCNxuHxU fbyNCvcVUSBxieCuL6OJXxkLoAgPAhTVxx9FTbFU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111523] Unexpected performance regression with -ftrivial-auto-var-init=zero for e.g. systemctl unmask Date: Fri, 01 Mar 2024 07:57:16 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D111523 --- Comment #6 from Andrew Pinski --- (In reply to Sam James from comment #3) > manager_deserialize takes ~1s instead of ~0.2s I looked into manager-serialize.c and its code generation with and without -ftrivial-auto-var-init=3Dzero and there is no obvious issues there.=20 The only major thing I saw different was: MEM [(void *)&__unique_prefix_i12] =3D 4294967294; vs __unique_prefix_i12.idx =3D 4294967294; where idx is of type unsigned. that is -2 aka _IDX_ITERATOR_FIRST. There is padding after the idx field so storing zero there is fine.=