You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Integrate] Fail to hoisting vectors when memref.assume_alignment is present #20912
I hit the error, and it is not an easy fix to me. For now, filing an issue to unblock integrate. It only happens in hoisting transfers on memrefs, which is legacy pipeline.
To repro: iree-opt --pass-pipeline="builtin.module(func.func(iree-codegen-optimize-vector-transfer))" repro.mlir
Activity
[Integrate] Make IREE compatible with the new memref.assume_alignment…
hanhanW commentedon Jun 2, 2025
Adding a working IR that uses the memref directly, and it works: https://gist.github.com/hanhanW/4314bd77cb24468b3ebdea2cb9d274f5
The naming of variables looks confusing, because I made the change by hands. It is easier to make the change.
hanhanW commentedon Jun 2, 2025
I got a smaller repro, and I trimed down IREE specifics.
To repro:
iree-opt --iree-transform-dialect-interpreter --allow-unregistered-dialect repro.mlirOutput:
hanhanW commentedon Jun 2, 2025
I think the issue is about how we implement MemoryEffectOpInterface for the memref.assume_alignment op. I'll take a look later.
Upstream implementation for hoisting: https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
hanhanW commentedon Jun 18, 2025
I verified that llvm/llvm-project#144809 can fix the issue, see #21133.
[CodeGen] Re-enable memref::AssumeAlignmentOp for SPIRV pipelines. (i…
[Integrate] Make IREE compatible with the new memref.assume_alignment…
[CodeGen] Re-enable memref::AssumeAlignmentOp for SPIRV pipelines. (#…