[mlir][spirv][NFC] Clean up SPIR-V canonicalization
authorJakub Kuderski <kubak@google.com>
Fri, 26 May 2023 23:54:44 +0000 (19:54 -0400)
committerJakub Kuderski <kubak@google.com>
Fri, 26 May 2023 23:54:44 +0000 (19:54 -0400)
commit17fcf8a6bd472e116b39ed993cf73e5c7e28fba7
treef1ad07463d26705bcb538d2cb088bc7f0c4e7d12
parent28ab032298824ed1cd6d1499a7c67cffbf11faa3
[mlir][spirv][NFC] Clean up SPIR-V canonicalization

Follow best practices. Use llvm helper functions for readability.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D151600
mlir/lib/Dialect/SPIRV/IR/SPIRVCanonicalization.cpp