From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B81D4385E00B; Wed, 25 Mar 2020 18:40:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B81D4385E00B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585161655; bh=RBupLTZ7XALReH4iphixhV77hsKSotO8Nl1LpsCuyoI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eOz3StP0neExwOwHWvPB3tJNZT6wOp7KPAiGLsLJ0dXe6DWUYbOlp9EBi1sUoYGcz C08MfYumFA9YAUQHGL9+eTMnNCtNzhqdpEHxVRQ3g+qA1fQAaTggFJ6fR0Cn0oqa0W /Ga4NNj2rj6qFc+vF0Wx6S+3+z0jT9mROBN1WbjI= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/81594] Optimize PowerPC vector set and store Date: Wed, 25 Mar 2020 18:40:55 +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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: meissner 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: Wed, 25 Mar 2020 18:40:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81594 --- Comment #7 from Segher Boessenkool --- Peepholes catch fewer cases, and it is very hard to write correct peepholes. The only reason to use peepholes is when the other passes leave some import= ant optimisation on the table, and you cannot feasibly fix that problem. They are not a substitute for proper optimisation (for example, almost all "interesting" optimisation happen before it, so you cannot rely on combine or cse or *prop etc. to do anything -- so, if you want some simple optimisations with it you need to write that manually (an exponential amount of work). T= his even applies to "trivial" things like constant arguments. Peepholes are nice for mopping up those cases that for one reason or the ot= her the other compiler passes cannot / do not get right. They can "tune" the compiler output to be just a teeny bit better. They cannot do anything more than that.=