[Mlir-commits] [mlir] d9c5e8a - [mlir][affine] Remove unused captures
Benjamin Kramer
llvmlistbot at llvm.org
Sat Nov 18 12:05:44 PST 2023
Author: Benjamin Kramer
Date: 2023-11-18T21:03:22+01:00
New Revision: d9c5e8a2303ff10d211cf1abf722dcde8d6ae468
URL: https://github.com/llvm/llvm-project/commit/d9c5e8a2303ff10d211cf1abf722dcde8d6ae468
DIFF: https://github.com/llvm/llvm-project/commit/d9c5e8a2303ff10d211cf1abf722dcde8d6ae468.diff
LOG: [mlir][affine] Remove unused captures
Added:
Modified:
mlir/lib/IR/AffineMap.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/AffineMap.cpp b/mlir/lib/IR/AffineMap.cpp
index e0293812277a276..3b3391882d04791 100644
--- a/mlir/lib/IR/AffineMap.cpp
+++ b/mlir/lib/IR/AffineMap.cpp
@@ -8,7 +8,6 @@
#include "mlir/IR/AffineMap.h"
#include "AffineMapDetail.h"
-#include "mlir/Dialect/UB/IR/UBOps.h"
#include "mlir/IR/AffineExpr.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinAttributes.h"
@@ -60,8 +59,7 @@ class AffineExprConstantFolder {
expr, [](int64_t lhs, int64_t rhs) { return lhs * rhs; });
case AffineExprKind::Mod:
return constantFoldBinExpr(
- expr,
- [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
+ expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
if (rhs < 1) {
hasPoison_ = true;
return std::nullopt;
@@ -70,8 +68,7 @@ class AffineExprConstantFolder {
});
case AffineExprKind::FloorDiv:
return constantFoldBinExpr(
- expr,
- [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
+ expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
if (rhs == 0) {
hasPoison_ = true;
return std::nullopt;
@@ -80,8 +77,7 @@ class AffineExprConstantFolder {
});
case AffineExprKind::CeilDiv:
return constantFoldBinExpr(
- expr,
- [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
+ expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> {
if (rhs == 0) {
hasPoison_ = true;
return std::nullopt;
More information about the Mlir-commits
mailing list