Message ID | 20230908020021.3174-1-guojie@loongson.cn |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp265728vqo; Thu, 7 Sep 2023 19:01:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERKaQ9vd8DBN6UHo0qyzDZhLJCHFfMb2qLtXv5EC9WdYpJ3KarxRievzKtx4qqQs2IQHPn X-Received: by 2002:a05:6512:33cc:b0:4fd:f80e:4977 with SMTP id d12-20020a05651233cc00b004fdf80e4977mr994188lfg.19.1694138479873; Thu, 07 Sep 2023 19:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694138479; cv=none; d=google.com; s=arc-20160816; b=GEAckLBj4dIvVblrtP4vIlpGA0N0dMds0c2fb6urtgQxeKGnAWeLz6W7JvIsQgEpwa uCBkSE93OwW1JqeR/xsW9knyieASNlTUHKBiMlFc+D0jtyiyAi4raLUKrVb3CGyPm8zg odYKhh6aAHlL1KXdngXED4bJMvAJqIBQ1jIs5jvo8s4w5P8xO/YFGX/MxONQOTAloEAw pM5P00G3TyiBYTsg3VzsfBp1yli0HRyO81+yZot6yUx5PUacBH9Xaj5TyeAi3yscjEu2 1m/AAqnskOmmMQDPGjcp+eAk9ZkWaDGlj//a+nwYNKFlfN9BP2kWWB1KVVylozaHZiA8 KO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dmarc-filter :delivered-to; bh=h0yi/6IGFC8BP6AfKfGpOc7R7GdMaQLjWee2KucqXDg=; fh=WfH4Rd7KtWp1EjXjTdii7qoKjQ8oEJ7/9jnEjH+Yg58=; b=DyWhq2Va8pA89uNyzixJfpwtdCYMhghuOft7zAwY7hbXq5QW1IN2jeFXNHOMAo6LD2 AQkXhb5n5+WaDnFj+sMr4Lm8Ufq9xKqr4NaU7YW1Au9BOUdIS7J7hTe7xAdudBRYdaT5 B2y33c+rBTmH++dXYuWtMHUSS79f9naPxMjq35zEqYyM8k3MxUIspZm/iGtPRq9sJqh/ n+Fx8jO1DT64lvEVwBYqZTgNM+5eyjokFs2z0q9XCJiAZUmB53/jx7TjsBsy5okELrMm KwclG9uM4QCHUPAdiJj9XcdGaMw3z8HubI5rGhI0fdhDPSEQxI8dILY7icWvD3/Ew+aj jgNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qn12-20020a170907210c00b009888665e53fsi418595ejb.190.2023.09.07.19.01.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 19:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 107B13857702 for <ouuuleilei@gmail.com>; Fri, 8 Sep 2023 02:01:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 9C2103858D1E for <gcc-patches@gcc.gnu.org>; Fri, 8 Sep 2023 02:00:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C2103858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guojie@loongson.cn>) id 1qeQnb-0008Tr-3g for gcc-patches@gcc.gnu.org; Thu, 07 Sep 2023 22:00:46 -0400 Received: from loongson.cn (unknown [10.20.4.191]) by gateway (Coremail) with SMTP id _____8Cxrus9gPpk8dshAA--.64597S3; Fri, 08 Sep 2023 10:00:30 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.191]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_yM7gPpkEbVxAA--.34878S4; Fri, 08 Sep 2023 10:00:29 +0800 (CST) From: Guo Jie <guojie@loongson.cn> To: gcc-patches@gcc.gnu.org Subject: [PATCH] LoongArch: Enable -fsched-pressure by default at -O1 and higher. Date: Fri, 8 Sep 2023 10:00:21 +0800 Message-Id: <20230908020021.3174-1-guojie@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx_yM7gPpkEbVxAA--.34878S4 X-CM-SenderInfo: xjxryx3h6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw47AFW5tFWfuw4fKw4kGrX_yoWftrbEqF 13tFyDCr4DJa95Gw1qqayrZ34UJa48JFnxAas7XFs7K3W5Aw4ayr92qas5AayUK345X3Zx Ars5KF9Ikr17tosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8czVUUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=guojie@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_PASS, TXREP 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.30 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> Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, i@xen0n.name, Guo Jie <guojie@loongson.cn> 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: INBOX X-GMAIL-THRID: 1776432950671395732 X-GMAIL-MSGID: 1776432950671395732 |
Series |
LoongArch: Enable -fsched-pressure by default at -O1 and higher.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Guo Jie
Sept. 8, 2023, 2 a.m. UTC
gcc/ChangeLog: * common/config/loongarch/loongarch-common.cc: (default_options loongarch_option_optimization_table): Default to -fsched-pressure. --- gcc/common/config/loongarch/loongarch-common.cc | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, 2023-09-08 at 10:00 +0800, Guo Jie wrote: > gcc/ChangeLog: > > * common/config/loongarch/loongarch-common.cc: "common/" should be removed. You can use "git gcc-verify" to figure out this kind of error before sending a patch in the future. > (default_options loongarch_option_optimization_table): > Default to -fsched-pressure. "Default to -fsched-pressure at -O1 or above." Otherwise OK. > --- > gcc/common/config/loongarch/loongarch-common.cc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/common/config/loongarch/loongarch-common.cc > b/gcc/common/config/loongarch/loongarch-common.cc > index c5ed37d27a6..b6901910b70 100644 > --- a/gcc/common/config/loongarch/loongarch-common.cc > +++ b/gcc/common/config/loongarch/loongarch-common.cc > @@ -36,6 +36,7 @@ static const struct default_options > loongarch_option_optimization_table[] = > { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 }, > { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, > { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, > + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, > { OPT_LEVELS_NONE, 0, NULL, 0 } > }; >
Hi, What I wanna change is "gcc/common/config/loongarch/loongarch-common.cc", and the patch is automatically generated by "git gcc-commit-mklog". Is it necessary to to remove "common/" ? Thanks for the review. 在 2023/9/8 下午4:06, Xi Ruoyao 写道: > On Fri, 2023-09-08 at 10:00 +0800, Guo Jie wrote: >> gcc/ChangeLog: >> >> * common/config/loongarch/loongarch-common.cc: > "common/" should be removed. You can use "git gcc-verify" to figure out > this kind of error before sending a patch in the future. > >> (default_options loongarch_option_optimization_table): >> Default to -fsched-pressure. > "Default to -fsched-pressure at -O1 or above." > > Otherwise OK. > >> --- >> gcc/common/config/loongarch/loongarch-common.cc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/gcc/common/config/loongarch/loongarch-common.cc >> b/gcc/common/config/loongarch/loongarch-common.cc >> index c5ed37d27a6..b6901910b70 100644 >> --- a/gcc/common/config/loongarch/loongarch-common.cc >> +++ b/gcc/common/config/loongarch/loongarch-common.cc >> @@ -36,6 +36,7 @@ static const struct default_options >> loongarch_option_optimization_table[] = >> { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 }, >> { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, >> { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, >> + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, >> { OPT_LEVELS_NONE, 0, NULL, 0 } >> }; >>
On Fri, 2023-09-08 at 16:29 +0800, Guo Jie wrote: > Hi, > > What I wanna change is "gcc/common/config/loongarch/loongarch- > common.cc", > > and the patch is automatically generated by "git gcc-commit-mklog". > > Is it necessary to to remove "common/" ? My bad. I didn't realized the file has been moved to common. Don't change it :(. > Thanks for the review. > > > 在 2023/9/8 下午4:06, Xi Ruoyao 写道: > > On Fri, 2023-09-08 at 10:00 +0800, Guo Jie wrote: > > > gcc/ChangeLog: > > > > > > * common/config/loongarch/loongarch-common.cc: > > "common/" should be removed. You can use "git gcc-verify" to figure > > out > > this kind of error before sending a patch in the future. > > > > > (default_options loongarch_option_optimization_table): > > > Default to -fsched-pressure. > > "Default to -fsched-pressure at -O1 or above." > > > > Otherwise OK. > > > > > --- > > > gcc/common/config/loongarch/loongarch-common.cc | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/gcc/common/config/loongarch/loongarch-common.cc > > > b/gcc/common/config/loongarch/loongarch-common.cc > > > index c5ed37d27a6..b6901910b70 100644 > > > --- a/gcc/common/config/loongarch/loongarch-common.cc > > > +++ b/gcc/common/config/loongarch/loongarch-common.cc > > > @@ -36,6 +36,7 @@ static const struct default_options > > > loongarch_option_optimization_table[] = > > > { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 }, > > > { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, > > > { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, > > > + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, > > > { OPT_LEVELS_NONE, 0, NULL, 0 } > > > }; > > > >
Pushed to r14-3805. 在 2023/9/8 下午4:32, Xi Ruoyao 写道: > On Fri, 2023-09-08 at 16:29 +0800, Guo Jie wrote: >> Hi, >> >> What I wanna change is "gcc/common/config/loongarch/loongarch- >> common.cc", >> >> and the patch is automatically generated by "git gcc-commit-mklog". >> >> Is it necessary to to remove "common/" ? > My bad. I didn't realized the file has been moved to common. > > Don't change it :(. > >> Thanks for the review. >> >> >> 在 2023/9/8 下午4:06, Xi Ruoyao 写道: >>> On Fri, 2023-09-08 at 10:00 +0800, Guo Jie wrote: >>>> gcc/ChangeLog: >>>> >>>> * common/config/loongarch/loongarch-common.cc: >>> "common/" should be removed. You can use "git gcc-verify" to figure >>> out >>> this kind of error before sending a patch in the future. >>> >>>> (default_options loongarch_option_optimization_table): >>>> Default to -fsched-pressure. >>> "Default to -fsched-pressure at -O1 or above." >>> >>> Otherwise OK. >>> >>>> --- >>>> gcc/common/config/loongarch/loongarch-common.cc | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/gcc/common/config/loongarch/loongarch-common.cc >>>> b/gcc/common/config/loongarch/loongarch-common.cc >>>> index c5ed37d27a6..b6901910b70 100644 >>>> --- a/gcc/common/config/loongarch/loongarch-common.cc >>>> +++ b/gcc/common/config/loongarch/loongarch-common.cc >>>> @@ -36,6 +36,7 @@ static const struct default_options >>>> loongarch_option_optimization_table[] = >>>> { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 }, >>>> { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, >>>> { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, >>>> + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, >>>> { OPT_LEVELS_NONE, 0, NULL, 0 } >>>> }; >>>>
diff --git a/gcc/common/config/loongarch/loongarch-common.cc b/gcc/common/config/loongarch/loongarch-common.cc index c5ed37d27a6..b6901910b70 100644 --- a/gcc/common/config/loongarch/loongarch-common.cc +++ b/gcc/common/config/loongarch/loongarch-common.cc @@ -36,6 +36,7 @@ static const struct default_options loongarch_option_optimization_table[] = { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } };