[all-commits] [llvm/llvm-project] 2ba972: [mlir][spirv] Add folding for SPIR-V Shifting ops ...
Finn Plummer via All-commits
all-commits at lists.llvm.org
Wed Dec 6 15:00:58 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2ba9720a76491709288467f3d51530cc6d031540
https://github.com/llvm/llvm-project/commit/2ba9720a76491709288467f3d51530cc6d031540
Author: Finn Plummer <50529406+inbelic at users.noreply.github.com>
Date: 2023-12-06 (Wed, 06 Dec 2023)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBitOps.td
M mlir/lib/Dialect/SPIRV/IR/SPIRVCanonicalization.cpp
M mlir/test/Dialect/SPIRV/Transforms/canonicalize.mlir
Log Message:
-----------
[mlir][spirv] Add folding for SPIR-V Shifting ops (#74192)
Add missing constant propogation folder for LeftShiftLogical,
RightShift[Logical|Arithmetic].
Implement additional folding when Shift value is 0.
This helps for readability of lowered code into SPIR-V.
Part of work for #70704
More information about the All-commits
mailing list