[Mlir-commits] [mlir] 4b815d8 - [mlir][NFC] Remove unused variable 'indexType' in GPUTransformOps.cpp

Jie Fu llvmlistbot at llvm.org
Mon Feb 13 17:50:53 PST 2023


Author: Jie Fu
Date: 2023-02-14T09:48:09+08:00
New Revision: 4b815d8443db4d041625f022cd26294080e929e6

URL: https://github.com/llvm/llvm-project/commit/4b815d8443db4d041625f022cd26294080e929e6
DIFF: https://github.com/llvm/llvm-project/commit/4b815d8443db4d041625f022cd26294080e929e6.diff

LOG: [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.

Added: 
    

Modified: 
    mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
index 742189c2ae49..abb58369aa36 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<Value> threadOpsUpdated(threadOps.begin(), threadOps.end());
   assert(threadOps.size() == globalBlockDims.size());


        


More information about the Mlir-commits mailing list