Skip to content

Commit b2e2ae8

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp:901:12: error: variable 'origVecType' set but not used [-Werror,-Wunused-but-set-variable] mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp:908:12: error: variable 'origTensorDescTy' set but not used [-Werror,-Wunused-but-set-variable]
1 parent 978df3b commit b2e2ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,14 +898,14 @@ static Value resolveDistributedTy(Value orig, T expected,
898898
if (orig.getType() == expected)
899899
return orig;
900900
// If orig is a vector type, create a shape cast op to reconcile the types.
901-
if (auto origVecType = isa<VectorType>(orig.getType())) {
901+
if (isa<VectorType>(orig.getType())) {
902902
auto castOp =
903903
rewriter.create<vector::ShapeCastOp>(orig.getLoc(), expected, orig);
904904
return castOp.getResult();
905905
}
906906
// If orig is a tensor descriptor type, create an unrealized conversion cast
907907
// op to reconcile the types.
908-
if (auto origTensorDescTy = isa<xegpu::TensorDescType>(orig.getType())) {
908+
if (isa<xegpu::TensorDescType>(orig.getType())) {
909909
auto castOp = rewriter.create<UnrealizedConversionCastOp>(orig.getLoc(),
910910
expected, orig);
911911
return castOp.getResult(0);

0 commit comments

Comments
 (0)