From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 045E8385800B; Wed, 6 Mar 2024 08:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 045E8385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709714014; bh=g7FSBedYjYcKFvjPdf91g0EuPAEa9we72BNcDnrb8gY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qgMUhYOStuM+oYJof0eqGhRR8lJFSAaINppC2JD8sEyjQ1tBSpggbqkWj7QPIFHk9 /nbzRyAWqxiaDuHkMRQ9tT1qPaIBhjIwTCYeUtrIfBdBNg7cGc0Q6zaw9XUhe8tGHu rkVSt8+nPJFVKNRoAUbqwSE++z1+0jgIp+6PPt4s= From: "chenglulu at loongson dot cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance Date: Wed, 06 Mar 2024 08:33:31 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chenglulu at loongson dot cn 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: 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=3D112919 --- Comment #13 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > (In reply to chenglulu from comment #8) > > (In reply to Xi Ruoyao from comment #7) > > > Any update? :) > >=20 > > Well, I haven't run it yet. Since this does not have a big impact on the > > spec score, I am currently testing it on a single-channel machine, so t= he > > test time will be longer. > > I will reply here as soon as the results are available. >=20 > Can we determine on LA664 if the current default alignment is better than > not aligning at all? Coremarks results suggest the current default is ev= en > worse than not aligning, but arguably Coremarks is far different from real > workloads. However if the current default is not better than not aligning > (or the difference is only marginal and is likely covered up by some rand= om > fluctuation) we can disable the aligning for LA664. >=20 > (Maybe we and the HW engineers have done some repetitive work or even some > work cancelling each other out :(. ) The results of spec2006 on 3A6000 were obtained, I removed the more volatile test items, '-falign-loops=3D8 -falign-functions=3D8 -falign-jumps=3D32 -falign-lables=3D4' this set of parameters got the highest score. This is t= he same combination of parameters as the coremark tested by Xu Chenghua.=