[mlir][spirv] Do not introduce vector<1xT> in UnifyAliasedResource
authorJakub Kuderski <kubak@google.com>
Tue, 25 Jul 2023 15:30:17 +0000 (11:30 -0400)
committerTobias Hieta <tobias@hieta.se>
Thu, 10 Aug 2023 07:06:20 +0000 (09:06 +0200)
commitf71f8c923ae985abfddcc7e9feba1d3002431e5e
tree814c83a6be7ada2f4b2b540e5dfa45f625e71f9f
parent7832b42073d61d598be98b43d5896f578bfc3950
[mlir][spirv] Do not introduce vector<1xT> in UnifyAliasedResource

1-element vectors are not valid in SPIR-V and fail `Bitcast` op verification.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D156207
mlir/lib/Dialect/SPIRV/Transforms/UnifyAliasedResourcePass.cpp
mlir/test/Dialect/SPIRV/Transforms/unify-aliased-resource.mlir