This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Do not introduce vector<1xT> in UnifyAliasedResource
ClosedPublic

Authored by kuhar on Jul 24 2023, 11:13 PM.

Details

Summary

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

Diff Detail

Event Timeline

kuhar created this revision.Jul 24 2023, 11:13 PM
Herald added a project: Restricted Project. · View Herald Transcript
kuhar requested review of this revision.Jul 24 2023, 11:13 PM
kuhar updated this revision to Diff 543842.Jul 24 2023, 11:49 PM

Add tests and commnets

kuhar edited the summary of this revision. (Show Details)Jul 24 2023, 11:49 PM
kuhar added a reviewer: qedawkins.
kuhar updated this revision to Diff 543843.Jul 24 2023, 11:50 PM
kuhar edited the summary of this revision. (Show Details)

Add missing newline

kuhar retitled this revision from [mlir][spirv][wip] Do not introduce vector<1xT> in UnifyAliasedResource to [mlir][spirv] Do not introduce vector<1xT> in UnifyAliasedResource.Jul 24 2023, 11:54 PM
kuhar updated this revision to Diff 543846.Jul 24 2023, 11:55 PM

Fix test

antiagainst accepted this revision.Jul 25 2023, 7:47 AM
This revision is now accepted and ready to land.Jul 25 2023, 7:47 AM