This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fix bitcast input order for UnifyAliasedResourcePass
ClosedPublic

Authored by antiagainst on Jun 23 2022, 3:33 PM.

Details

Summary

spv.bitcast from a vector to a scalar expects the lower-numbered
components of the the vector to map to the lower-ordered bits of
the scalar. That actually already matches how little endian stores
data in the memory. So we just need to read and push to the back
of the vector sequentially.

Diff Detail

Event Timeline

antiagainst created this revision.Jun 23 2022, 3:33 PM
antiagainst requested review of this revision.Jun 23 2022, 3:33 PM
hanchung accepted this revision.Jun 23 2022, 6:08 PM
This revision is now accepted and ready to land.Jun 23 2022, 6:08 PM