This patch adds supports for the reduction intrinsic
for floating point minimum and maximum that have
been added to LLVM by https://reviews.llvm.org/D152370.
Related to: #63969
Paths
| Differential D155869
[mlir][LLVM] Introduce reduction intrinsics for minimum/maximum ClosedPublic Authored by unterumarmung on Jul 20 2023, 10:52 AM.
Details Summary This patch adds supports for the reduction intrinsic Related to: #63969
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 20 2023, 11:04 AM Comment Actions
Should I proceed with the https://github.com/llvm/llvm-project/issues/63969 or do you have the solution for that? If yes, is my understanding correct that we should just nuke createMinMaxF function that adds boilerplate for the NaN handling? Comment Actions
Thanks, no I just run a few experiments. Yes, we have to replace createMinMaxF with the corresponding maximum/minimum and the reduction intrinsics similarly. Thanks a lot for looking into this! Closed by commit rG8be07adfb42d: [mlir][LLVM] Introduce reduction intrinsics for minimum/maximum (authored by unterumarmung). · Explain WhyJul 22 2023, 6:57 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 543180 mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
mlir/test/Dialect/LLVMIR/roundtrip.mlir
mlir/test/Integration/Dialect/LLVMIR/CPU/test-vector-reductions-fp.mlir
mlir/test/Target/LLVMIR/Import/fastmath.ll
mlir/test/Target/LLVMIR/Import/intrinsic.ll
mlir/test/Target/LLVMIR/llvmir-intrinsics.mlir
mlir/test/Target/LLVMIR/llvmir.mlir
|