Skip to content

Commit 2844d86

Browse files
[mlir] Remove unused local variables (NFC) (#167107)
Identified with bugprone-unused-local-non-trivial-variable.
1 parent 0028ef6 commit 2844d86

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

mlir/lib/Dialect/Affine/Utils/Utils.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,9 +1327,6 @@ LogicalResult mlir::affine::replaceAllMemRefUsesWith(
13271327
assert(cast<MemRefType>(oldMemRef.getType()).getElementType() ==
13281328
cast<MemRefType>(newMemRef.getType()).getElementType());
13291329

1330-
std::unique_ptr<DominanceInfo> domInfo;
1331-
std::unique_ptr<PostDominanceInfo> postDomInfo;
1332-
13331330
// Walk all uses of old memref; collect ops to perform replacement. We use a
13341331
// DenseSet since an operation could potentially have multiple uses of a
13351332
// memref (although rare), and the replacement later is going to erase ops.

mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ struct LinalgOpTilingInterface
216216
SmallVectorImpl<OpFoldResult> &iterDomainSizes) const {
217217
auto linalgOp = cast<LinalgOp>(op);
218218

219-
std::optional<SmallVector<OpFoldResult>> iterationSpaceOffsets,
220-
iterationSpaceSizes;
221219
SmallVector<AffineMap> indexingMaps =
222220
llvm::map_to_vector(operandNumbers, [&](unsigned operandNumber) {
223221
OpOperand &opOperand = linalgOp->getOpOperand(operandNumber);

mlir/lib/Dialect/OpenACC/Transforms/ACCImplicitData.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ Operation *ACCImplicitData::generateDataClauseOpForCandidate(
571571
/*structured=*/true, /*implicit=*/true,
572572
accSupport.getVariableName(var));
573573
} else {
574-
SmallVector<Value> bounds;
575574
auto copyinOp =
576575
acc::CopyinOp::create(builder, loc, var,
577576
/*structured=*/true, /*implicit=*/true,

mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
4444
lowerBounds.size() == steps.size() &&
4545
"Mismatched parallel loop bounds");
4646

47-
SmallVector<Value> ivs;
4847
scf::LoopNest loopNest =
4948
scf::buildLoopNest(rewriter, loc, lowerBounds, upperBounds, steps);
5049

0 commit comments

Comments
 (0)