From 4b815d8443db4d041625f022cd26294080e929e6 Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Tue, 14 Feb 2023 09:48:09 +0800 Subject: [PATCH] [mlir][NFC] Remove unused variable 'indexType' in GPUTransformOps.cpp /data/jiefu/llvm-project/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp:430:13: error: unused variable 'indexType' [-Werror,-Wunused-variable] IndexType indexType = rewriter.getIndexType(); ^ 1 error generated. --- mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp index 742189c..abb5836 100644 --- a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp +++ b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp @@ -427,7 +427,6 @@ static DiagnosedSilenceableFailure rewriteOneForeachThreadToGpuThreads( // Step 3. Create the gpu.thread ops and map the induction variables to the // newly created ops. - IndexType indexType = rewriter.getIndexType(); // Replace ids of dimension size 1 by zero to simplify the IR. SmallVector threadOpsUpdated(threadOps.begin(), threadOps.end()); assert(threadOps.size() == globalBlockDims.size()); -- 2.7.4