LoongArch: Enable -fsched-pressure by default at -O1 and higher.

gcc/ChangeLog:

	* common/config/loongarch/loongarch-common.cc:
	(default_options loongarch_option_optimization_table):
	Default to -fsched-pressure.
This commit is contained in:
Guo Jie 2023-09-08 10:00:21 +08:00 committed by Lulu Cheng
parent d07682dc25
commit f3ba57163c

View 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 }
};