[all-commits] [llvm/llvm-project] 88151d: [mlir][spirv] Add folding for SNegate, [Logical]No...
Finn Plummer via All-commits
all-commits at lists.llvm.org
Thu Dec 21 09:24:16 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88151dd4285cdd9feeb24ebb1be9cf5252ab0883
https://github.com/llvm/llvm-project/commit/88151dd4285cdd9feeb24ebb1be9cf5252ab0883
Author: Finn Plummer <50529406+inbelic at users.noreply.github.com>
Date: 2023-12-21 (Thu, 21 Dec 2023)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVArithmeticOps.td
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBitOps.td
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVLogicalOps.td
M mlir/lib/Dialect/SPIRV/IR/SPIRVCanonicalization.cpp
M mlir/test/Dialect/SPIRV/Transforms/canonicalize.mlir
Log Message:
-----------
[mlir][spirv] Add folding for SNegate, [Logical]Not (#74992)
Add missing constant propogation folder for SNegate, [Logical]Not.
Implement additional folding when !(!x) for all ops.
This helps for readability of lowered code into SPIR-V.
Part of work for #70704
More information about the All-commits
mailing list