This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR91598] Improve autoprefetcher heuristic in haifa-sched.c
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Alexander Monakov <amonakov at ispras dot ru>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Thu, 29 Aug 2019 18:18:21 +0000
- Subject: Re: [PR91598] Improve autoprefetcher heuristic in haifa-sched.c
- 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=2r+rk4k4fCR2RJ7sPSBwZPcyL4fKKlJdL93M9QCr+HU=; b=XzOiqPmW1mEyhi2fpL+fS3CncHhzai+cfRKLjV3TAISqDEez4/K3IkQfccp3fNqvi3DHnfqNwltM+uKZ1clh1pj6pQb4t15ogbHmDv5hbUHLp2FP3ANquM44fi49i2gdZhJghNgDCuwQbP01a9W9Ib47exN1QpLaoZxvUwjw+Zb/fXsnZcydatW+mwE24mW61B+TzLMDNrmIZd6V/7HecnloDjxLD5SxC9BZHEGkKPuzYpSdMLFnxJ0ILqx6yWzX16Xu+PNmY82ODZ1Ruj51fbFFGpkAvGIxyU3BrwwJQPSn7p9KyuRviGRYTy8ik3i4RlnZuMBoGwHloRfasIGtgw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9C+9rbqO5M8TpMhZ6tOYSarA4xj6T9ZvtKhL6afWFiKjjhdv3DZ/1IN14CqU8Tqz9Shy8FO6XfG0R5/oXonjIgkX5hDzf4R4CL0achKq7CS1z8OnKwJCvLrAzbrPRNowsIEljjihuyZCC129gYCCyO18hICDgP0QcB0LTF5u32XsRu/k3/sbDQGgm1WHkiggsBVCvSdyeCuZEt9isEt9Q1yXAdiJ29y+/7M0VZXaz7n631guu0VLXOR6uV2fRmzsFULTzXdfNin0fSGS2EyUFYR4/AePz0nA+mr6bUWETx4Y9jzZfoE8RI5nGjfHKt6wB2C0sJGfvzwHZNa29fi9g==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- References: <D46C8D08-685F-41A7-8695-23BB65B74A87@linaro.org> <09F25146-8361-4FB0-AE6B-E13BF8CF332F@gmail.com> <F3D1DE53-D56C-4293-87C5-AA71EEE67680@linaro.org>,<alpine.LNX.2.20.13.1908291947390.30575@monopod.intra.ispras.ru>
Hi Alexander,
> So essentially the main issue is not a hardware peculiarity, but rather the
> bad schedule being totally wrong (it could only make sense if loads had 1-cycle
> latency, which they do not).
The scheduling is only bad because the specific intrinsics used are mapped
onto asm statements, so they are ignored by the scheduler and modelled
with zero latencies.
> I think this highlights how implementing this autoprefetch heuristic via the
> dfa_lookahead_guard interface looks questionable in the first place, but the
> patch itself makes sense to me.
Yes I'm still not sure what this autoprefetch heuristic is trying to accomplish...
We could try disabling it and see whether it actually helps.
Wilco