AffineMap.dropResult erases one result from the array and it changes indexing. Calling dropResult is a loop with increasing indexes does not produce a desired result.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing this :)
mlir/include/mlir/IR/AffineMap.h | ||
---|---|---|
252 | Personally I would pass std::greater<int>() instead of using rbegin()/rend() |
Comment Actions
Thank you!
mlir/include/mlir/IR/AffineMap.h | ||
---|---|---|
252 | Fair point! And with llvm::sort it's even shorter. |
Personally I would pass std::greater<int>() instead of using rbegin()/rend()
I think this is easier readable.