This patch fixes a bug in implementation mergeSymbolIds where symbol
identifiers were not unique after merging them. Asserts for checking uniqueness
before and after the merge are also added. The asserts checking uniqueness
after the merge fail without the fix on existing test cases.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
The existing test cases fail on adding the assert. Do you prefer a test case that fails without the asserts too? I do not have a test case for that as of now, but I can try to find it.
mlir/lib/Analysis/AffineStructures.cpp | ||
---|---|---|
451–461 | This may stop working if the variable layout changes. I would prefer this implementation to not depend on that. You could change this to take e.g. start and end indices or offset and length parameters. You could also write an additional function e.g. areSymbolIdsUnique that calls into this for your use case. |
This may stop working if the variable layout changes. I would prefer this implementation to not depend on that.
You could change this to take e.g. start and end indices or offset and length parameters. You could also write an additional function e.g. areSymbolIdsUnique that calls into this for your use case.