Message ID | f29ae60f-aa9c-2d60-1fd6-cb4089729331@yahoo.co.jp |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp742792pxh; Sun, 14 Aug 2022 02:32:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7AvLGHoQH/pCfBACLAB3xywzWIVlHBeF4N0RgNxVVnEtn4r6EXmtcCDPJlT3aWvCRRlerZ X-Received: by 2002:a05:6402:4312:b0:43d:b9c0:65ee with SMTP id m18-20020a056402431200b0043db9c065eemr10325643edc.205.1660469565642; Sun, 14 Aug 2022 02:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660469565; cv=none; d=google.com; s=arc-20160816; b=zCY2d7Acql7vnbk3uBY/X6HiWrJCd+CRrY4IHHZQvi47t0ABkbQWSAvcnrPeUKSPQh g3Hdmlg+F7YbUVhIhQAR3JL2XDbgea6bebUB7YkBC56KsjSD/fGyVAW+OVlGFjaPDepu 4gr2kRBmJlCgDh3pp2BR7AFBVuaLpFy09bhoXPec27kQdPJW0VjFeqkl8Kz8+9AJ5iUV XteyfOQ+ZFf7acEGw244h5qshj21IY9bojGe7Rb2YbBKOpOrCHYGnZ0vUnKMdfXdOVu+ +YMp6tjgTZ3cEnGBEk1OuC9M+TPNmVT9p1YtiKEX2zrzJ+FSWO3PkUu7sIWeISXMEbr0 4qJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:subject:to:user-agent:mime-version:date :message-id:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ZWj5TPCbHUkryjl5LgObZ56AvnpvPDd8COSipuiE0Ew=; b=VwlnAZSryRPcBHbXs35cpV6jC/6RI4DDyoIk9bhp93F0cRZpidzFFZiBTWoD4ksJir bB6XZHCOVmEBEHoPRx8WbL+unAFJaJABDJ/yYNqHa1OKoATgdQiMoWUh+8Nbh6wbwHEn AE9sFhbgwDfyWKTudKln9kdMliSGHN9lRMNdBOjW3edYBmBi8dSyEHgURQOH1EhRsTuk igbgDhYkyxVZCvV9EpslJ66zLYiXaxJ4HCFo0GhXG2gHGF4PvihxbtR7jTPXEOFW69mC c5pNIJYTJYrJMa7MkUs0jri385Up6vu9xvMqAFJMXREmejw76ftLTlsX3oCrg/jSzLLf rUaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DtbRvm3i; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hr10-20020a1709073f8a00b0073155c0e7cesi6045905ejc.677.2022.08.14.02.32.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 02:32:45 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DtbRvm3i; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6CCD938582A1 for <ouuuleilei@gmail.com>; Sun, 14 Aug 2022 09:32:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CCD938582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660469564; bh=ZWj5TPCbHUkryjl5LgObZ56AvnpvPDd8COSipuiE0Ew=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DtbRvm3iw6VNXY1RUhJcvBZQV5vasds52TBHSYsdvYM3m1/lEHQ9KaZMqyJOJcVzr qVNHKZRPOWQuxUhncNEUBcExlYqKKQ4hfLukkTBbt9KYqKJGmU/px6igOgaaZDdf3P PsNuxfT+Y9OYlmPTSs7ofgC5VB9kLurJX2884kUo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nh603-vm9.bullet.mail.ssk.yahoo.co.jp (nh603-vm9.bullet.mail.ssk.yahoo.co.jp [182.22.90.50]) by sourceware.org (Postfix) with SMTP id 38CBC3858D3C for <gcc-patches@gcc.gnu.org>; Sun, 14 Aug 2022 09:32:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 38CBC3858D3C Received: from [182.22.66.104] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 14 Aug 2022 09:31:55 -0000 Received: from [182.22.91.129] by t602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 14 Aug 2022 09:31:55 -0000 Received: from [127.0.0.1] by omp602.mail.ssk.yahoo.co.jp with NNFMP; 14 Aug 2022 09:31:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 657366.44731.bm@omp602.mail.ssk.yahoo.co.jp Received: (qmail 38725 invoked by alias); 14 Aug 2022 09:31:55 -0000 Received: from unknown (HELO ?192.168.2.3?) (175.177.45.183 with ) by smtp6008.mail.ssk.ynwp.yahoo.co.jp with SMTP; 14 Aug 2022 09:31:55 -0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kbJk5NmSkA2SMtv6JoraLD_Mn e.pY1tu.vubZE8jKbo9PyqLUeFFvDE2JNjWzok4_pUVTLkOBVgYvwKJbMIAn JcjPzbMz_wlX1e8pVeQ-- Message-ID: <f29ae60f-aa9c-2d60-1fd6-cb4089729331@yahoo.co.jp> Date: Sun, 14 Aug 2022 18:29:33 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 To: GCC Patches <gcc-patches@gcc.gnu.org> Subject: [PATCH] xtensa: Turn on -fsplit-wide-types-early by default Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Takayuki 'January June' Suwa via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741128535395214302?= X-GMAIL-MSGID: =?utf-8?q?1741128535395214302?= |
Series |
xtensa: Turn on -fsplit-wide-types-early by default
|
|
Commit Message
Takayuki 'January June' Suwa
Aug. 14, 2022, 9:29 a.m. UTC
Since GCC10, the "subreg2" optimization pass was no longer tied to enabling "subreg1" unless -fsplit-wide-types-early was turned on (PR88233). However on the Xtensa port, the lack of "subreg2" can degrade the quality of the output code, especially for those that produce many D[FC]mode pseudos. This patch turns on -fsplit-wide-types-early by default in order to restore the previous behavior. gcc/ChangeLog: * common/config/xtensa/xtensa-common.cc (xtensa_option_optimization_table): Add OPT_fsplit_wide_types_early for OPT_LEVELS_ALL in order to restore pre-GCC10 behavior. --- gcc/common/config/xtensa/xtensa-common.cc | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Sun, Aug 14, 2022 at 2:31 AM Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> wrote: > > Since GCC10, the "subreg2" optimization pass was no longer tied to enabling > "subreg1" unless -fsplit-wide-types-early was turned on (PR88233). However > on the Xtensa port, the lack of "subreg2" can degrade the quality of the > output code, especially for those that produce many D[FC]mode pseudos. > > This patch turns on -fsplit-wide-types-early by default in order to restore > the previous behavior. > > gcc/ChangeLog: > > * common/config/xtensa/xtensa-common.cc > (xtensa_option_optimization_table): Add OPT_fsplit_wide_types_early > for OPT_LEVELS_ALL in order to restore pre-GCC10 behavior. > --- > gcc/common/config/xtensa/xtensa-common.cc | 2 ++ > 1 file changed, 2 insertions(+) Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master.
diff --git a/gcc/common/config/xtensa/xtensa-common.cc b/gcc/common/config/xtensa/xtensa-common.cc index fbbe9b0aad7..0f27763aa71 100644 --- a/gcc/common/config/xtensa/xtensa-common.cc +++ b/gcc/common/config/xtensa/xtensa-common.cc @@ -34,6 +34,8 @@ static const struct default_options xtensa_option_optimization_table[] = assembler, so GCC cannot do a good job of reordering blocks. Do not enable reordering unless it is explicitly requested. */ { OPT_LEVELS_ALL, OPT_freorder_blocks, NULL, 0 }, + /* Split multi-word types early (pre-GCC10 behavior). */ + { OPT_LEVELS_ALL, OPT_fsplit_wide_types_early, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } };