summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp')
-rw-r--r--mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp
index 5ccf740f2fb..21bcdc9a6db 100644
--- a/mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/VectorToLLVM.cpp
@@ -196,10 +196,10 @@ public:
int64_t offset;
SmallVector<int64_t, 4> strides;
auto successStrides =
- getStridesAndOffset(targetMemRefType, strides, offset);
+ getStridesAndOffset(sourceMemRefType, strides, offset);
bool isContiguous = (strides.back() == 1);
if (isContiguous) {
- auto sizes = targetMemRefType.getShape();
+ auto sizes = sourceMemRefType.getShape();
for (int index = 0, e = strides.size() - 2; index < e; ++index) {
if (strides[index] != strides[index + 1] * sizes[index + 1]) {
isContiguous = false;
@@ -207,7 +207,7 @@ public:
}
}
}
- // Only contiguous tensors supported atm.
+ // Only contiguous source tensors supported atm.
if (failed(successStrides) || !isContiguous)
return matchFailure();
OpenPOWER on IntegriCloud