]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Enable -fsched-pressure by default at -O1 and higher.
authorGuo Jie <guojie@loongson.cn>
Fri, 8 Sep 2023 02:00:21 +0000 (10:00 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 8 Sep 2023 09:51:18 +0000 (17:51 +0800)
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

index c5ed37d27a64b375d056a6e58594fd212d0ff383..b6901910b70d22cece91c19689b5243948c7675c 100644 (file)
@@ -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 }
 };