This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fix loading bool with proper storage capabilities
ClosedPublic

Authored by antiagainst on Jul 29 2021, 5:20 PM.

Details

Summary

If the source value to load is bool, and we have native storage
capability support for the source bitwidth, we still cannot directly
rewrite uses; we need to perform casting to bool first.

Depends On D107114

Diff Detail

Event Timeline

antiagainst created this revision.Jul 29 2021, 5:20 PM
antiagainst requested review of this revision.Jul 29 2021, 5:20 PM
hanchung accepted this revision.Jul 30 2021, 1:45 PM
This revision is now accepted and ready to land.Jul 30 2021, 1:45 PM
This revision was landed with ongoing or failed builds.Jul 30 2021, 3:07 PM
This revision was automatically updated to reflect the committed changes.