This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][nfc] Use tensor.generate in sparse integration tests
ClosedPublic

Authored by vmrajas on Aug 8 2022, 8:31 AM.

Details

Summary

Currently, dense tensors are initialized in Sparse Integration tests using
"buffer.tensor_alloc and scf.for" . This makes code harder to read and maintain.
This diff uses tensor.generate instead to initialize dense tensors.

Testing: Ran integration tests after building with -DLLVM_USE_SANITIZER=Address flag.

Diff Detail

Event Timeline

vmrajas created this revision.Aug 8 2022, 8:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 8:31 AM
vmrajas requested review of this revision.Aug 8 2022, 8:31 AM
springerm accepted this revision.Aug 8 2022, 8:44 AM

nice cleanup!

This revision is now accepted and ready to land.Aug 8 2022, 8:44 AM
This revision was landed with ongoing or failed builds.Aug 8 2022, 9:45 AM
This revision was automatically updated to reflect the committed changes.

Oh, this is really nice! Thanks for making the change.