From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2DC233856275; Tue, 11 Oct 2022 11:08:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DC233856275 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665486481; bh=wNw+PeA/vPh93mwccDUmyNERN0Raq+wc2XU7FaVHNpw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a29rg0HF4zx9CdIJ+BAyn6WuIyeew6Xzwb99uTjC0LNulH0uVBLlvlgHgr2arXOdC MTI3qZVKEh9UlzLQPHtgSUqbiQZ396E7bOwY39fu2YDQjshhZwv8GKsTTlzSkdRYiI hrVHH+iE6vfP+te3JT3jcKtjjGIJEwAp0eV7aCME= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107093] AVX512 mask operations not simplified in fully masked loop Date: Tue, 11 Oct 2022 11:08:00 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com 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=3D107093 --- Comment #8 from Hongtao.liu --- >=20 > One downside for a fully masked body is that we're using masked stores > which usually have higher latency due to the "merge" semantics which > means an extra memory input + merge operation. Not sure if modern > uArchs can optimize the all-ones mask case, the vectorizer, for Also I guess mask store won't be store forward even load is inside the mask store.=