From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E6E93858C2D; Fri, 25 Aug 2023 07:43:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E6E93858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692949394; bh=MfNkxt08YBNRfUNBjM5cqeziMwNrLPZ/P/cvH3xiyy8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o9jBu489MnzgOpbll+1Sw/diO8MVb55SrUmPmBoN6KHGsWW0j4BBXOWudE2Mor7yO a3VJ1SqDPPOhNIrVVdCNTuPj00+z47pohi9cSx44hTSPrdN/UtZBoMIrd6oYxtJT1i CPRGFv43sDbrytjeTzYCb4E4dnPauS+uYaIJY07g= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108271] Missed RVV cost model Date: Fri, 25 Aug 2023 07:43:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: internal-improvement, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108271 Robin Dapp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rdapp at gcc dot gnu.org --- Comment #3 from Robin Dapp --- This is basically the same problem as PR108412. As long as loads/stores ha= ve a high(ish) latency and we mostly do load/store, they will tend to lump toget= her at the end of the function. Setting vector load/store to a latency of <=3D= 2 helps here and we might want to do this in order to avoid excessive spillin= g. I had to deal with this before, e.g. in SPEC2006's calculix. In the end insn scheduling wouldn't buy us anything and rather caused more spilling causing performance degradationl=