This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix areIdsUnique in AffineStructures
ClosedPublic

Authored by Groverkss on May 1 2022, 2:34 AM.

Details

Summary

This patch fixes a bug in areIdsUnique where it ignores the [start, end] range.

No test case is added since there are no use cases through IR from where it
can be tested, and it is hard to create a unittest since we do not currently
have Values in unittests.

Diff Detail

Event Timeline

Groverkss created this revision.May 1 2022, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2022, 2:34 AM
Groverkss requested review of this revision.May 1 2022, 2:34 AM
arjunp accepted this revision.May 1 2022, 2:59 AM

LGTM, maybe mention that it's hard to add a test case because of it being static and not being able to use Values in unittests (AFAIK)

This revision is now accepted and ready to land.May 1 2022, 2:59 AM

Indeed. If no test case is provided, there should be an explanation in the commit message why providing a test case is impractical.

Groverkss edited the summary of this revision. (Show Details)May 13 2022, 2:45 AM
Groverkss edited the summary of this revision. (Show Details)May 13 2022, 3:44 AM
This revision was automatically updated to reflect the committed changes.