Skip to content

Commit 536f3d2

Browse files
Revert "[mlir][memref] Fix offset update in emulating narrow type for strided memref (llvm#67714)"
This reverts commit 35ec6ea. Breaks downstream narrow type execution tests.
1 parent 0463e00 commit 536f3d2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,6 @@ void memref::populateMemRefNarrowTypeEmulationConversions(
272272

273273
StridedLayoutAttr layoutAttr;
274274
if (offset != 0) {
275-
// Check if the number of bytes are a multiple of the loadStoreWidth
276-
// and if so, divide it by the loadStoreWidth to get the offset.
277-
if ((offset * width) % loadStoreWidth != 0)
278-
return std::nullopt;
279-
offset = (offset * width) / loadStoreWidth;
280-
281275
layoutAttr = StridedLayoutAttr::get(ty.getContext(), offset,
282276
ArrayRef<int64_t>{1});
283277
}

0 commit comments

Comments
 (0)