commit | b5af9963ff9ba8dcf872434a3a7b8c9bb999db0e | [log] [tgz] |
---|---|---|
author | Benoit Jacob <jacob.benoit.1@gmail.com> | Fri Mar 08 11:41:27 2024 -0500 |
committer | GitHub <noreply@github.com> | Fri Mar 08 11:41:27 2024 -0500 |
tree | 6ae17a93e29c71940a490d0bf3ef5d4bb337d3ab | |
parent | 47dfaa54c2cae59323a43d7c001a693090cd1c78 [diff] |
Prefer broadcasting RHS over LHS in AVX-512 multiply-accumulate instructions (#16709) Some AVX-512 multiply-accumulate instructions have variants where the RHS is a `m32bcst`, which is, a 32-bit memory operand with implicit broadcast semantics. These save having to use a separate broadcast instruction so they are preferable. Depending on each compiler version and each intrinsic, it may or may not make a difference which operand is passed as LHS/RHS, that is, some compilers are able to swap LHS<->RHS as needed to make this happen. Compiler Explorer: https://godbolt.org/z/eh81x5qT8 Summary: Compiler | `vfmadd231ps_broadcast_rhs` | `vfmadd231ps_broadcast_lhs` | `vpdpwssd_broadcast_rhs` | `vpdpwssd_broadcast_lhs` --- | --- | --- | --- | --- Clang trunk | ✅ | ✅ | ✅ | ✅ Clang 17 | ✅ | ✅ | ✅ | ❌ GCC trunk | ✅ | ✅ | ❌ | ❌ MSVC latest | ❌ | ❌ | ❌ | ❌ So... this PR helps at least on some Clang versions (which happen to include my native Clang-16 toolchain here on Ubuntu).
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.