Skip to content

Commit b40b44c

Browse files
committed
Fix check
1 parent 97c9c95 commit b40b44c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,6 @@ def XeGPU_SliceAttr : XeGPUAttr<"Slice", "slice", [DistributeLayoutAttr]> {
637637
parent = parent.dropSgLayoutAndData();
638638
if (!parent)
639639
return nullptr;
640-
if(!parent.getInstData() && !parent.getLaneLayout())
641-
return nullptr;
642640
return SliceAttr::get(getContext(), parent, attr.getDims());
643641
}
644642

@@ -648,8 +646,6 @@ def XeGPU_SliceAttr : XeGPUAttr<"Slice", "slice", [DistributeLayoutAttr]> {
648646
parent = parent.dropInstData();
649647
if (!parent)
650648
return nullptr;
651-
if (!parent.getSgLayout() && !parent.getLaneLayout())
652-
return nullptr;
653649
return SliceAttr::get(getContext(), parent, attr.getDims());
654650
}
655651

0 commit comments

Comments
 (0)