This is an archive of the discontinued LLVM Phabricator instance.

[mlir][StandardToSPIRV] Fix test cases where DCE removes all the code.
ClosedPublic

Authored by mravishankar on Apr 23 2020, 9:32 AM.

Diff Detail

Event Timeline

mravishankar created this revision.Apr 23 2020, 9:32 AM
mravishankar added a reviewer: tpopp.
tpopp accepted this revision.Apr 23 2020, 9:39 AM

Thank you for the quick solution!

mlir/test/Conversion/StandardToSPIRV/subview-to-spirv.mlir
33–34

Could you add a CHECK statement for the data flowing through the load->sqrt->store also just to prevent any really unlucky debugging in the future?

This revision is now accepted and ready to land.Apr 23 2020, 9:39 AM

Addressing comment.

mravishankar marked an inline comment as done.Apr 23 2020, 9:45 AM
antiagainst accepted this revision.Apr 23 2020, 10:11 AM

Looks good. This actually makes tests simpler given that we are not testing load/store per-se here.

This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Apr 23 2020, 10:41 PM
mlir/test/Conversion/StandardToSPIRV/subview-to-spirv.mlir
1

Why is the name legalize-... instead of convert-... here? Is there some subtle difference or this was not intentional to diverge from the usual convention here?