From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F9833858C60; Mon, 6 Dec 2021 11:52:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F9833858C60 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103554] -mavx generates worse code on scalar code Date: Mon, 06 Dec 2021 11:52:08 +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: 11.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2021 11:52:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103554 --- Comment #6 from rguenther at suse dot de --- On Mon, 6 Dec 2021, avi at scylladb dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103554 >=20 > --- Comment #5 from Avi Kivity --- > Here's some big-picture data. Compiled with clang, which seems to ignore = these > STLF issues. >=20 > no-slp: >=20 > 42641.91 tps ( 75.1 allocs/op, 12.1 tasks/op, 44929 insns/op) > 42446.41 tps ( 75.1 allocs/op, 12.1 tasks/op, 44870 insns/op) > 42495.03 tps ( 75.1 allocs/op, 12.1 tasks/op, 44931 insns/op) > 42703.40 tps ( 75.1 allocs/op, 12.1 tasks/op, 44916 insns/op) > 42798.98 tps ( 75.1 allocs/op, 12.1 tasks/op, 44963 insns/op) >=20 > slp: >=20 > 41536.46 tps ( 75.1 allocs/op, 12.1 tasks/op, 44828 insns/op) > 41482.05 tps ( 75.1 allocs/op, 12.1 tasks/op, 44802 insns/op) > 41707.23 tps ( 75.1 allocs/op, 12.1 tasks/op, 44874 insns/op) > 41811.10 tps ( 75.1 allocs/op, 12.1 tasks/op, 44847 insns/op) > 41764.39 tps ( 75.1 allocs/op, 12.1 tasks/op, 44846 insns/op) >=20 > So slp definitely has negative impact on ops/sec, even though it reduces > instructions/op. This is on an older machine (newer ones have ~5X perf, w= ith 3X > higher IPC and the rest due to higher frequency). Is that with the function inlined? Can you show the argument setup code at the caller side?=