Skip to content

Commit

Permalink
[mlir][NFC] Remove unused variable 'indexType' in GPUTransformOps.cpp
Browse files Browse the repository at this point in the history
/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.
  • Loading branch information
DamonFool committed Feb 14, 2023
1 parent 288ae0b commit 4b815d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 4b815d8

Please sign in to comment.