Skip to content

Commit a2bc905

Browse files
committed
clean up
1 parent 2bc35d8 commit a2bc905

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
189189
}
190190

191191
SmallVector<OpFoldResult> getMixedSizes() {
192-
Builder b(getContext());
193192
SmallVector<int64_t> statics;
194193

195194
/// Get the static sizes/shape, the value passed to const_shape
@@ -199,11 +198,10 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
199198
if (auto attr = getConstShapeAttr())
200199
statics = llvm::to_vector(attr.asArrayRef());
201200

202-
return getMixedValues(statics, getShape(), b);
201+
return getMixedValues(statics, getShape(), getContext());
203202
}
204203

205204
SmallVector<OpFoldResult> getMixedStrides() {
206-
Builder b(getContext());
207205
SmallVector<int64_t> statics;
208206

209207
/// Get the static strides, the value passed to const_strides
@@ -213,7 +211,7 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
213211
if (auto attr = getConstStridesAttr())
214212
statics = llvm::to_vector(attr.asArrayRef());
215213

216-
return getMixedValues(statics, getStrides(), b);
214+
return getMixedValues(statics, getStrides(), getContext());
217215
}
218216

219217
/// Return the number of leading operands before the `offsets`,

0 commit comments

Comments
 (0)