1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/contrib/llvm-project
Dimitry Andric cadd2ca217 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-divl" 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=znver4 (or any other znver), as opposed to -march=x86-64-v4
or the baseline -march=x86-64. A similar fix is applied for Nehalem.

PR:		278908
MFC after:	3 days
2024-05-25 21:12:29 +02:00
..
clang Merge llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67 2024-05-24 17:58:04 +02:00
compiler-rt Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric): 2024-04-25 18:47:47 +02:00
libcxx Merge llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67 2024-05-24 17:58:04 +02:00
libunwind Merge llvm-project main llvmorg-18-init-18359-g93248729cfae 2024-04-06 22:13:49 +02:00
lld Merge llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67 2024-05-24 17:58:04 +02:00
lldb Merge llvm-project main llvmorg-18-init-18359-g93248729cfae 2024-04-06 22:13:49 +02:00
llvm Merge commit d0be944aa511 from llvm-project (by Simon Pilgrim): 2024-05-25 21:12:29 +02:00
openmp Merge commit 73bb8d9d92f6 from llvm-project (by Jonathan Peyton): 2024-05-08 20:45:45 +02:00
FREEBSD-Xlist Merge llvm-project main llvmorg-18-init-18359-g93248729cfae 2024-04-06 22:13:49 +02:00