From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 41EE03858D32; Thu, 13 Apr 2023 13:21:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41EE03858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681392109; bh=l//qMg41pZ0JNRhpUALpat+F8h7HXE2hTaLOWTyQSiw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MlFNqC4+Cr9mEAKdtxfMm7X8h19q5847Ef06nK5nlbEW6ul/GRf+BLSkVRdzB0rLY GeSUjWRd1qS/Jj1QPKAwB/2CL7dqKD+DWDcxrDCRD4A/tm6KFxBgmcEtSSOaG8AoGg gkJRRZACuaz+N4FWNaFkQQ+ZweCTpaus1NzWOucM= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109499] Unnecessary zeroing in SVE loops Date: Thu, 13 Apr 2023 13:21:49 +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: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenther at suse dot de 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=3D109499 --- Comment #3 from rguenther at suse dot de --- On Thu, 13 Apr 2023, rsandifo at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109499 >=20 > --- Comment #2 from rsandifo at gcc dot gnu.org --- > (In reply to Richard Biener from comment #1) > > Is there not enough info to catch this on the RTL level with a peephole? > That works for simple cases like the first loop. But in general, I think= we > want the full power of gimple to push the information down. The second l= oop is > one example of that, but in general, there could be a chain of operations= that > naturally do the right thing for inactive lanes. AVX512 masking allows merge and zero modes, zero being cheaper=20 (obviously). I think "zero" is what all targets support so we could define GIMPLE to be that way - inactive lanes become zero. That's then also less of a "partial definition" and "undefined" should be avoided at best?=