This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Improve async parallel for tests + fix typos
ClosedPublic

Authored by ezhulenev on Dec 6 2021, 6:17 AM.

Details

Summary

Do load and store to verify that we process each element of the iteration space once.

Diff Detail

Event Timeline

ezhulenev created this revision.Dec 6 2021, 6:17 AM
ezhulenev requested review of this revision.Dec 6 2021, 6:17 AM
ezhulenev updated this revision to Diff 392042.Dec 6 2021, 6:19 AM

Revert accidental changes

ezhulenev edited the summary of this revision. (Show Details)
cota added inline comments.Dec 6 2021, 7:49 AM
mlir/test/Integration/Dialect/Async/CPU/test-async-parallel-for-1d.mlir
80

Please add the same comment as in the commit log here:

// Do load and store to verify that we process each element of the iteration space once.

I wouldn't add it everywhere we do this, but at least once per file should help a reader quickly understand why we're doing this.

mlir/test/Integration/Dialect/Async/CPU/test-async-parallel-for-2d.mlir
74–76

store %5

ezhulenev updated this revision to Diff 392137.Dec 6 2021, 11:24 AM
ezhulenev marked 2 inline comments as done.

Address comments

cota accepted this revision.Dec 6 2021, 11:37 AM
This revision is now accepted and ready to land.Dec 6 2021, 11:37 AM
This revision was automatically updated to reflect the committed changes.