When using -test-loop-permutation="permutation-map=...", applies the permutation map on each affine nest in the function (and not only the first one). If the size of the permutation map and the size of a nest are not consistent, do nothing on this particular nest (instead of making MLIR crash).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for fixing this. One other comment to make the walk complete.
mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp | ||
---|---|---|
54–56 | We could actually just use: getFunction().walk<AffineForOp>([&](AffineForOp forOp) { forOps.push_back(forOp); }); `` |
Comment Actions
@qaco The patch wasn't clang-formatted and had white space issues as well. I can fix these before committing. Can you provide your name/email information that you want on the commit? arc patch isn't able to automatically get it.
We could actually just use: