[all-commits] [llvm/llvm-project] d61ec5: [mlir][spirv] Add IsInf/IsNan expansion for WebGPU...
Jakub Kuderski via All-commits
all-commits at lists.llvm.org
Thu Mar 28 11:13:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d61ec513c42005bb071eb15386deb5de585ff267
https://github.com/llvm/llvm-project/commit/d61ec513c42005bb071eb15386deb5de585ff267
Author: Jakub Kuderski <jakub at nod-labs.com>
Date: 2024-03-28 (Thu, 28 Mar 2024)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.h
M mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp
M mlir/test/Dialect/SPIRV/Transforms/webgpu-prepare.mlir
Log Message:
-----------
[mlir][spirv] Add IsInf/IsNan expansion for WebGPU (#86903)
These non-finite math ops are supported by SPIR-V but not by WGSL.
Assume finite floating point values and expand these ops into `false`.
Previously, this worked by adding fast math flags during conversion from
arith to spirv, but this got removed in
https://github.com/llvm/llvm-project/pull/86578.
Also do some misc cleanups in the surrounding code.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list