[Tarantool-patches] [PATCH luajit 0/2] Refactoring and FMA optimizations
Sergey Kaplun
skaplun at tarantool.org
Tue Jan 14 14:06:56 MSK 2025
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
More information about the Tarantool-patches
mailing list