This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Affine] Fix bug and MSAN issue in affine loop utils
ClosedPublic

Authored by bondhugula on Mar 23 2023, 1:11 AM.

Details

Summary

Fix bug and MSAN issue in affine loop utils introduced by
d25e022cd19b83c22a6022edb78c4b97a5fc1b49 (D146495). While on it,
fix/clean up issues in immediately surrounding code.

Diff Detail

Event Timeline

bondhugula created this revision.Mar 23 2023, 1:11 AM
bondhugula requested review of this revision.Mar 23 2023, 1:11 AM
bondhugula edited the summary of this revision. (Show Details)

Update commit summary.

springerm added inline comments.Mar 23 2023, 1:24 AM
mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
2186

should this be =?

Fix output arg initialization on the error paths as well.

bondhugula marked an inline comment as done.Mar 23 2023, 1:26 AM
bondhugula added inline comments.
mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
2186

Thanks for spotting - it should be that!

bondhugula marked an inline comment as done.

Fix typo spotted by reviewer.

springerm accepted this revision.Mar 23 2023, 1:28 AM
This revision is now accepted and ready to land.Mar 23 2023, 1:28 AM
This revision was landed with ongoing or failed builds.Mar 23 2023, 1:44 AM
This revision was automatically updated to reflect the committed changes.