From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6357A3857370; Thu, 21 Jul 2022 07:39:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6357A3857370 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE Date: Thu, 21 Jul 2022 07:39:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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 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: Thu, 21 Jul 2022 07:39:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106365 --- Comment #13 from Richard Biener --- (In reply to Kewen Lin from comment #10) > But it still keeps the .LEN_STORE there: >=20 > int foo () > { > int a[10]; >=20 > [local count: 97603129]: > .LEN_STORE (&MEM [(void *)&a + 32B], 128B, 8, { 64, 0, 0, 0, = 81, > 0, 0, 0, 100, 0, 0, 0, 121, 0, 0, 0 }, 0); > a =3D{v} {CLOBBER(eol)}; > return 285; >=20 > } >=20 > btw, the latest commit "Add alias disambiguation for vectorizer load/store > IFNs" has been applied. I think that DSE doesn't handle the store IFNs yet - maybe adding handling to initialize_ao_ref_for_dse would be enough - but I think it cannot yet handle a "conservative" start (for .MASK_STORES), but .LEN_STORE should be possible to describe exact by giving an exact trimmed size to ao_ref (the alias disambiguation changes could be also made more precise there). Can you open a separate bugreport for the DSE issue?=