Skip to content

[mlir] Remove unused local variables (NFC) #140990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mlir/lib/IR/AffineMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ size_t AffineMap::getNumOfZeroResults() const {
}

AffineMap AffineMap::dropZeroResults() {
auto exprs = llvm::to_vector(getResults());
SmallVector<AffineExpr> newExprs;

for (auto expr : getResults()) {
Expand Down
1 change: 0 additions & 1 deletion mlir/lib/Target/LLVMIR/ModuleImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ convertProfileSummaryModuleFlagValue(ModuleOp mlirModule,

// Build ModuleFlagProfileSummaryAttr by sequentially fetching elements in
// a fixed order: format, total count, etc.
SmallVector<Attribute> profileSummary;
std::optional<ProfileSummaryFormatKind> format = convertProfileSummaryFormat(
mlirModule, llvmModule, mdTuple->getOperand(summayIdx++));
if (!format.has_value())
Expand Down
1 change: 0 additions & 1 deletion mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,6 @@ uint32_t Serializer::prepareConstantFp(Location loc, FloatAttr floatAttr,

auto resultID = getNextID();
APFloat value = floatAttr.getValue();
APInt intValue = value.bitcastToAPInt();

auto opcode =
isSpec ? spirv::Opcode::OpSpecConstant : spirv::Opcode::OpConstant;
Expand Down