From nobody Sat May 25 20:18:42 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 4VmtXL4KqKz5LYMd for ; Sat, 25 May 2024 20:18:42 +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 4VmtXK6y9Pz4qtb for ; Sat, 25 May 2024 20:18:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716668322; a=rsa-sha256; cv=none; b=s801IPtPHhxW/+FW71if0aAN59YrOd667iqgdtkWH4Ee2LdNghhmmoE2m5IaI/i+TwyKyO a2nPJu3Ok/AhuqpafEBHuJRkdgADEliXqtwqzdpaPhGyUHzUVQ0YKzWVh7temrvrtgyxvK DnqIRoQiDIWsWoahjC/jIkiejxf16Acqy6l+i2SNw4GuLpUElqpwq2FpS0d+1VUOAX65Gz TdnEcNmSd6j0iFAzdybSKx5hYF9oZttqdg0pztY/mBhHzAvAj7wY/g311yspXChU3qiKZK TKyUZEPydEW51ofDkpP5ZLkN4YVH5/PHL/+1h+3kY8oqfOSsoNyFwlyV3oohBQ== 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=1716668322; 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=IzvkS5lPwtgcUTnc40gXCO0p0zWl06UWyn8LbyfE8Uc=; b=bb2HwH57NX69FExsmOWTDE/3afXC0ZUQY9l4E3CdO6n1H+qxU1ebmrAbXXay4aqIYM3sbb 47piCJ+nCJLBpXfe2Ste+t2E7p5EM8HRusVhQOq0jxwKIHQb0go6H+2JsskF0bn7CdUk6n OAgzdNx0rShvcK/M3UF5iMUJ+qCiudsDn/77Ul+asJ0+reivXGwjj1jWm4gP/e9aRAGoQP 7mKAAGlQO793rh7nMabzpSIyy1nEdqcFU9GZPJIzCAIYyi4OvoBRyagMi7NkZ3+NpFhkZL Cd/kHrAglbwgByjXyqQXocYf3k2c5dw1lJcgT5vACVhyQOa6lmC7oFrWaVSwvw== 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 4VmtXK6TYbzWBG for ; Sat, 25 May 2024 20:18:41 +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 44PKIf6l011339 for ; Sat, 25 May 2024 20:18:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44PKIfoe011335 for toolchain@FreeBSD.org; Sat, 25 May 2024 20:18:41 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: Sat, 25 May 2024 20:18:42 +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: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org 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: 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 #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dcadd2ca21765ebcb95b77ec94977b4e74= e1edc1b commit cadd2ca21765ebcb95b77ec94977b4e74e1edc1b Author: Dimitry Andric AuthorDate: 2024-05-25 17:52:15 +0000 Commit: Dimitry Andric CommitDate: 2024-05-25 19:12:29 +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 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.=