From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C8F83954C42; Tue, 24 May 2022 18:47:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C8F83954C42 From: "qing.zhao at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101891] Adjust -fzero-call-used-regs to always use XOR Date: Tue, 24 May 2022 18:47:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qing.zhao at oracle dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2022 18:47:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101891 --- Comment #8 from Qing Zhao --- > On May 24, 2022, at 11:42 AM, arjan at linux dot intel.com wrote: >=20 > --- Comment #7 from Arjan van de Ven --- > from a performance angle, the xor-only sequence is not so great at all; m= odern > CPUs are really good at eliminating mov's so that's why the code original= ly was > added to do a combo of xor and mov.. Are you saying that the Xor-only sequence is slower than the previous XOR += MOV sequence? If so, can you explain a little bit more on why? And do you have any data f= or this claim? Thanks.=