From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 62920385AC2E; Mon, 31 Oct 2022 06:39:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62920385AC2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667198388; bh=Je5RBuNxmIacS9U7kKCYasT5td94W0KK/jjeFsWKEPQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fBPV74pK9gr4d90efQKGuTHW+NCYqB3vZ4DSe7Rh30Jg1tYZ3/T1UebjV7KWgnULf r4DYVHceZ+JJEJ9wgltZPv0fp9hbj4OaDgVYwNQlw0S+lHdJwvBdYfqcPQfvft4L22 XMN/2UVqzHiRGPgSYiHA36kCh+Dqs8K41ovRIGFg= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107412] Miss to fold LEN_{LOAD,STORE} when the specified length equal to vector length Date: Mon, 31 Oct 2022 06:39:47 +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: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw 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=3D107412 --- Comment #3 from Kewen Lin --- (In reply to Segher Boessenkool from comment #2) > Make sure we only use "plain" accesses on machines that allow all unalign= ed > accesses? p8 and later I think. The load-with-length insns are even lat= er, > but a builtin does not necessarily translate to those newer insns, so some > care is required :-) Thanks for raising this, for now these LEN_{LOAD,STORE} can ONLY be generat= ed when the target defines the relevant optab len_{load,store}, on power it's power9 and later, while on s390 it should be some latest cpu I guess. Those= are internal function and invisible for users, the support and the documentation assume it can work for unaligned access, if some target wants to emulate it later, it needs some more updates (not only this folding). So we don't need= to bother it for now IHMO. :)=