[Mlir-commits] [mlir] [mlir][vector] Hoist transfer pairs when the source is AssumeAlignmentOp (PR #144809)
Han-Chung Wang
llvmlistbot at llvm.org
Tue Jun 24 10:47:25 PDT 2025
================
@@ -313,11 +315,13 @@ void mlir::linalg::hoistRedundantVectorTransfers(Operation *root,
return WalkResult::advance();
auto *source = transferRead.getBase().getDefiningOp();
- if (source && isa_and_nonnull<ViewLikeOpInterface>(source))
+ if (source && isa_and_nonnull<ViewLikeOpInterface>(source) &&
+ !isa<memref::AssumeAlignmentOp>(source))
----------------
hanhanW wrote:
Yes, we can do so. What I meant in https://github.com/llvm/llvm-project/pull/144809#issuecomment-2989133498 is the similar idea. I did not make the change because we don't have an agreement yet.
https://github.com/llvm/llvm-project/pull/144809
More information about the Mlir-commits
mailing list