This is an archive of the discontinued LLVM Phabricator instance.

[mlir][IR] Remove ShapedType::getSizeInBits
ClosedPublic

Authored by springerm on Apr 17 2023, 1:03 AM.

Details

Summary

This function returns incorrect values for memrefs and vectors due to "widening".

Diff Detail

Event Timeline

springerm created this revision.Apr 17 2023, 1:03 AM
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Apr 17 2023, 1:03 AM
springerm added inline comments.Apr 17 2023, 1:07 AM
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
43–48

@antiagainst Any better way to handle this?

mehdi_amini accepted this revision.Apr 17 2023, 5:27 AM
This revision is now accepted and ready to land.Apr 17 2023, 5:27 AM
This revision was automatically updated to reflect the committed changes.