This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix TestAffineDataCopy for test cases with no load ops
ClosedPublic

Authored by bondhugula on May 2 2021, 2:43 AM.

Details

Summary

Add missing check without which a test case that has no affine.loads at
all would crash this test pass. Fix two clang-tidy warnings in the file
while at this. (Not adding an empty test case given the triviality.)

Diff Detail

Event Timeline

bondhugula created this revision.May 2 2021, 2:43 AM
bondhugula requested review of this revision.May 2 2021, 2:43 AM
bondhugula updated this revision to Diff 342229.May 2 2021, 2:46 AM

Add braces and expand auto.

bondhugula edited reviewers, added: andydavis1, navdeepkk; removed: bollu.May 2 2021, 6:02 PM
andydavis1 accepted this revision.May 3 2021, 8:23 AM
This revision is now accepted and ready to land.May 3 2021, 8:23 AM