[Mlir-commits] [mlir] [MLIR][Affine] Fix signature of mlir::affine::permuteLoops (PR #111100)
Benjamin Maxwell
llvmlistbot at llvm.org
Sun Oct 13 01:57:44 PDT 2024
================
@@ -1406,8 +1406,8 @@ unsigned mlir::affine::permuteLoops(MutableArrayRef<AffineForOp> input,
// Move the innermost loop body to the loop that would be the innermost in the
// permuted nest (only if the innermost loop is going to change).
if (permMap.back() != input.size() - 1) {
- auto *destBody = input[invPermMap.back().second].getBody();
- auto *srcBody = input.back().getBody();
+ Block *destBody = ((AffineForOp)input[invPermMap.back().second]).getBody();
----------------
MacDue wrote:
I feel like `MutableArrayRef` is probably correct given it's mutating the `AffineForOp`s... :thinking:
https://github.com/llvm/llvm-project/pull/111100
More information about the Mlir-commits
mailing list