Skip to content

Commit 6074d83

Browse files
[mlir] Remove unused local variables (NFC) (#140990)
1 parent 7ffa491 commit 6074d83

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

mlir/lib/IR/AffineMap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ size_t AffineMap::getNumOfZeroResults() const {
604604
}
605605

606606
AffineMap AffineMap::dropZeroResults() {
607-
auto exprs = llvm::to_vector(getResults());
608607
SmallVector<AffineExpr> newExprs;
609608

610609
for (auto expr : getResults()) {

mlir/lib/Target/LLVMIR/ModuleImport.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,6 @@ convertProfileSummaryModuleFlagValue(ModuleOp mlirModule,
756756

757757
// Build ModuleFlagProfileSummaryAttr by sequentially fetching elements in
758758
// a fixed order: format, total count, etc.
759-
SmallVector<Attribute> profileSummary;
760759
std::optional<ProfileSummaryFormatKind> format = convertProfileSummaryFormat(
761760
mlirModule, llvmModule, mdTuple->getOperand(summayIdx++));
762761
if (!format.has_value())

mlir/lib/Target/SPIRV/Serialization/Serializer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,6 @@ uint32_t Serializer::prepareConstantFp(Location loc, FloatAttr floatAttr,
996996

997997
auto resultID = getNextID();
998998
APFloat value = floatAttr.getValue();
999-
APInt intValue = value.bitcastToAPInt();
1000999

10011000
auto opcode =
10021001
isSpec ? spirv::Opcode::OpSpecConstant : spirv::Opcode::OpConstant;

0 commit comments

Comments
 (0)