This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][ARM] Switch to default sched pressure algorithm
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Kyrylo Tkachov <Kyrylo dot Tkachov at arm dot com>
- Date: Mon, 19 Aug 2019 15:51:20 +0000
- Subject: Re: [PATCH][ARM] Switch to default sched pressure algorithm
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IR6ooXC7urRYibwegPoPrliXW9BeyWLUYQMijrZvOW8=; b=ifVoq/iMQZvRvz0rMsOP+q2wdXo9IiNC2p2Fq7gCfAANr6cwsRqIsioCSIG1ARGLEu1ljnWnf2aCOQt8emLORt3mtYo9nngyKTW5Rx+Bm2YgzFuixYaLRceX+K8KMoCwsQoeIY783ABgVU7/RTNdIQmySqkJ2qQ8ZxXJ78n5IhQusZXzZkA2qtmKpOB2XKzETP+QX+JI5wgQ83AjPow+7F5rJSI8x1SC9a1pOz5FwHxfV6hmxz59Y3KgR2B7DsAgqoHqQ6WfXwDy99blVBx9UqoFRtgV1DO8kQ8Ngz2Akgy19xp2+WyY8OPOzrRc5VKEvBbns9LBL9Dihcbds9KyFQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nTuJXcc9XJKd9DNJgW+xwrVfuHQI4018jY5LUf3AA/PWDR1urSJq+iYxg8LoFBKUAUxc/QaQK/OesaV3Zdr1LWAPPHgOgyMuAHoS4D192hWcSnlr3HNjZeIS/AxMHABt5pizbvQUNOuvmy/2XcbH0slR2g0HcfSjEjeJMw6WT8a5OPf9DyYEQOXZ0DtL7mZ61g+ubN8mSYO8/TWFrHqUrNJDOnRRrGzIKeJjbWQ7WaL0S4hS6dCbul/di+UxoAtKg3dbXOie2ISIGYQlHGIDFDUX+CQoMD1DQb0RsszG7im6lJBHpUsbw1r/5al2FucC/n3HwsPplOc8czbDhhGfoA==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- References: <VI1PR0801MB2127648B6F8EA34101D444F683DD0@VI1PR0801MB2127.eurprd08.prod.outlook.com>
ping
Currently the Arm backend selects the alternative sched pressure algorithm.
The issue is that this doesn't take register pressure into account, and so
it causes significant additional spilling on Arm where there are only 14
allocatable registers. SPEC2006 shows significant codesize reduction
with the default pressure algorithm, so switch back to that. PR77308 shows
~800 fewer instructions.
SPECINT2006 is ~0.6% faster on Cortex-A57 together with the other DImode
patches. Overall SPEC codesize is 1.1% smaller.
Bootstrap & regress OK on arm-none-linux-gnueabihf --with-cpu=cortex-a57
ChangeLog:
2019-07-29 Wilco Dijkstra <wdijkstr@arm.com>
* config/arm/arm.c (arm_option_override): Don't override sched
pressure algorithm.
--
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 81286cadf32f908e045d704128c5e06842e0cc92..628cf02f23fb29392a63d87f561c3ee2fb73a515 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3575,11 +3575,6 @@ arm_option_override (void)
if (use_neon_for_64bits == 1)
prefer_neon_for_64bits = true;
- /* Use the alternative scheduling-pressure algorithm by default. */
- maybe_set_param_value (PARAM_SCHED_PRESSURE_ALGORITHM, SCHED_PRESSURE_MODEL,
- global_options.x_param_values,
- global_options_set.x_param_values);
-
/* Look through ready list and all of queue for instructions
relevant for L2 auto-prefetcher. */
int param_sched_autopref_queue_depth;