[Mlir-commits] [mlir] [mlir][mem2reg] Support whole-buffer vector.load/store promotion (PR #224182)
Jianhui Li
llvmlistbot at llvm.org
Sun Oct 18 22:46:32 PDT 2026
================
@@ -44,6 +48,30 @@ using namespace mlir::vector;
// Utilities
//===----------------------------------------------------------------------===//
+/// Load/store accesses must cover the slot from its origin with an exactly
+/// matching vector type. The allocation or alias model determines that type.
+template <typename LoadStoreOpTy>
+static bool
+isWholeBufferLoadStore(LoadStoreOpTy op, const MemorySlot &slot,
----------------
Jianhui-Li wrote:
Can we name the func "isPromotableLoadStore"? Just to be consistent with isPromotableTransfer.
https://github.com/llvm/llvm-project/pull/224182
More information about the Mlir-commits
mailing list