Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit 0/2] Refactoring and FMA optimizations
@ 2025-01-14 11:06 Sergey Kaplun via Tarantool-patches
  2025-01-14 11:06 ` [Tarantool-patches] [PATCH luajit 1/2] Cleanup CPU detection and tuning for old CPUs Sergey Kaplun via Tarantool-patches
  2025-01-14 11:06 ` [Tarantool-patches] [PATCH luajit 2/2] Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable Sergey Kaplun via Tarantool-patches
  0 siblings, 2 replies; 7+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2025-01-14 11:06 UTC (permalink / raw)
  To: Sergey Bronnikov; +Cc: tarantool-patches

The first commit in the patchset helps to avoid conflicts during the
backporting of the second patch, which fixes the ARM64 behaviour for FMA
optimization. Since the first patch is just a refactoring, it may be
easily applied too.

Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-918-fma-optimization
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/24
* https://github.com/LuaJIT/LuaJIT/issues/918
* https://github.com/tarantool/tarantool/issues/10709

Mike Pall (2):
  Cleanup CPU detection and tuning for old CPUs.
  Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable.

 doc/running.html                              |  8 ++
 src/Makefile.original                         |  1 -
 src/lib_jit.c                                 | 65 +++++-------
 src/lj_arch.h                                 |  6 +-
 src/lj_asm_arm.h                              |  6 +-
 src/lj_asm_arm64.h                            |  3 +-
 src/lj_asm_ppc.h                              |  3 +-
 src/lj_asm_x86.h                              | 33 ++-----
 src/lj_dispatch.c                             |  7 --
 src/lj_emit_x86.h                             |  5 +-
 src/lj_errmsg.h                               |  4 -
 src/lj_jit.h                                  | 98 ++++++++++---------
 src/lj_vmmath.c                               | 13 ++-
 src/ljamalg.c                                 | 10 --
 src/vm_arm64.dasc                             |  4 +-
 ...lj-918-fma-numerical-accuracy-jit.test.lua | 36 +++++++
 .../lj-918-fma-numerical-accuracy.test.lua    | 31 ++++++
 .../lj-918-fma-optimization.test.lua          | 25 +++++
 18 files changed, 214 insertions(+), 144 deletions(-)
 create mode 100644 test/tarantool-tests/lj-918-fma-numerical-accuracy-jit.test.lua
 create mode 100644 test/tarantool-tests/lj-918-fma-numerical-accuracy.test.lua
 create mode 100644 test/tarantool-tests/lj-918-fma-optimization.test.lua

-- 
2.47.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-15 13:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-14 11:06 [Tarantool-patches] [PATCH luajit 0/2] Refactoring and FMA optimizations Sergey Kaplun via Tarantool-patches
2025-01-14 11:06 ` [Tarantool-patches] [PATCH luajit 1/2] Cleanup CPU detection and tuning for old CPUs Sergey Kaplun via Tarantool-patches
2025-01-14 11:25   ` Sergey Bronnikov via Tarantool-patches
2025-01-15 13:10     ` Sergey Kaplun via Tarantool-patches
2025-01-14 11:06 ` [Tarantool-patches] [PATCH luajit 2/2] Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable Sergey Kaplun via Tarantool-patches
2025-01-14 12:45   ` Sergey Bronnikov via Tarantool-patches
2025-01-15 13:06     ` Sergey Kaplun via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox