This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][NFC] Refactor affine analysis helpers
ClosedPublic

Authored by bondhugula on Aug 10 2022, 4:38 AM.

Details

Summary

Refactor affine analysis helpers: the existing ones were using
unnecessary or improperly named arguments. NFC.

Diff Detail

Event Timeline

bondhugula created this revision.Aug 10 2022, 4:38 AM
bondhugula requested review of this revision.Aug 10 2022, 4:38 AM
bondhugula edited the summary of this revision. (Show Details)

Mark commit summary NFC.

Fix/improve comments.

ftynse accepted this revision.Aug 10 2022, 4:58 AM

Thanks!

Finding the common block sounds like a general utility. I think I have seen or maybe even written similar code elsewhere, but can't pinpoint where exactly. If you can, you are very welcome to move this to be a generic utility somewhere in lib/IR.

This revision is now accepted and ready to land.Aug 10 2022, 4:58 AM
This revision was automatically updated to reflect the committed changes.

Thanks!

Finding the common block sounds like a general utility. I think I have seen or maybe even written similar code elsewhere, but can't pinpoint where exactly. If you can, you are very welcome to move this to be a generic utility somewhere in lib/IR.

Thanks. I'll looks for such usage and do this in a follow-up PR.