[Mlir-commits] [mlir] [MLIR][Affine] Add test pass for affine isContiguousAccess (PR #82923)
Uday Bondhugula
llvmlistbot at llvm.org
Wed Feb 28 04:08:05 PST 2024
================
@@ -344,10 +333,12 @@ bool mlir::affine::isVectorizableLoopBody(
auto load = dyn_cast<AffineLoadOp>(op);
auto store = dyn_cast<AffineStoreOp>(op);
int thisOpMemRefDim = -1;
- bool isContiguous = load ? isContiguousAccess(loop.getInductionVar(), load,
- &thisOpMemRefDim)
- : isContiguousAccess(loop.getInductionVar(), store,
- &thisOpMemRefDim);
+ bool isContiguous =
+ load ? isContiguousAccess(loop.getInductionVar(),
+ (AffineReadOpInterface)load, &thisOpMemRefDim)
----------------
bondhugula wrote:
Sure, done.
https://github.com/llvm/llvm-project/pull/82923
More information about the Mlir-commits
mailing list