From nobody Tue May 28 05:29:20 2024 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VpLfm4T3cz5LdhJ for ; Tue, 28 May 2024 05:29:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VpLfm3JTGz4kB5 for ; Tue, 28 May 2024 05:29:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716874160; a=rsa-sha256; cv=none; b=H47/U2Q09hz257wc6MXvcMXaIK+x4YBtJ4WsxOenHsc4XW4cMRXVT1BccJ7bcA9EWhupFE jaU5xm8UX3esdZA8z8UqIcIR+kd77i/f/mcZKhzTx6NCri1xkVke5B0JiFY7AIOxWfYKnb +xupthFBDC/t+YM1k7AwbMj8xCvcDLtwflRz9WJCc1VW1zqTepxCcxAtJ9Kd3cJ4vyyp23 c8ozYa6FWFfAXrD42VwoVw+/UqsWggIfl5ww8H7Bvwc2N01jUuZmMCD7UinumabGfN5Wxz fBROX7AdMU8UyQXUHqmOJFqOdqGQ5mq+EwaRvZgC2AqfBJSS/kSpEeGhubjwYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716874160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q6QeneW8Ln9jJeU9uHGXW3s0XE1wlBE43vyJiT1Xr/o=; b=kATSCXrzgQsjnDrNt1sC4ZmgS1RSG7m0Ugi+Cbj3EyyXAMCGhM6Ab/OHxsaPjc7yB0CqF9 yu0Uv7isrnrq2hNRFPSd0p2/MGPKbzZBFjWchsnKkhUglRupvmTFWXs7EdKv5uAlVzKyVi rtNNi4FC0/WOJAJ2+V+66nMzpGC2rOos1orRX0IfpB96LCRC2kfWlaI+P4TP1z4+Ipf0zC VfxPSIm4fllpN/tMjbiuzVlvUL2D+9xw6k7HAksCmoqH+ao5FmbjSnyAHFxHf991wUqDM0 bnxv7gnMGhP2+YE1oEynZlOHo2ATEpmEw8lpDDqVfXf0zyKFr1t007kz0Rzt1g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VpLfm2qxcz1FMm for ; Tue, 28 May 2024 05:29:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44S5TKGU022056 for ; Tue, 28 May 2024 05:29:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44S5TK2A022055 for toolchain@FreeBSD.org; Tue, 28 May 2024 05:29:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 278908] Upcoming 14.1-RELEASE LLVM -> Worse runtime performance on Zen CPU when optimizing for Zen Date: Tue, 28 May 2024 05:29:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: mfc-stable14+ mfc-stable13+ 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278908 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Da3e6eda7981319113d39caedf79b94b44= 773970f commit a3e6eda7981319113d39caedf79b94b44773970f Author: Dimitry Andric AuthorDate: 2024-05-25 17:52:15 +0000 Commit: Dimitry Andric CommitDate: 2024-05-28 05:26:46 +0000 Merge commit d0be944aa511 from llvm-project (by Simon Pilgrim): [X86] Add slow div64 tuning flag to Nehalem target (#91129) This appears to have been missed because later cpus don't inherit from Nehalem tuning much. Noticed while cleaning up for #90985 Merge commit 8b400de79eff from llvm-project (by Simon Pilgrim): [X86] Enable TuningSlowDivide64 on Barcelona/Bobcat/Bulldozer/Ryzen Families (#91277) Despite most AMD cpus having a lower latency for i64 divisions that converge early, we are still better off testing for values representable as= i32 and performing a i32 division if possible. All AMD cpus appear to have been missed when we added the "idivq-to-d= ivl" attribute - this patch now matches Intel cpu behaviour (and the x86-64/v2/3= /4 levels). Unfortunately the difference in code scheduling means I've had to stop using the update_llc_test_checks script and just use old-fashioned CHECK-DAG checks for divl/divq pairs. Fixes #90985 This fixes possibly worse runtime performance on AMD Zen hardware, when using -march=3Dznver4 (or any other znver), as opposed to -march=3Dx86-= 64-v4 or the baseline -march=3Dx86-64. A similar fix is applied for Nehalem. PR: 278908 MFC after: 3 days (cherry picked from commit cadd2ca21765ebcb95b77ec94977b4e74e1edc1b) contrib/llvm-project/llvm/lib/Target/X86/X86.td | 6 ++++++ 1 file changed, 6 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=