[Mlir-commits] [mlir] [mlir] Remove dead declaration getSCFMinMaxExpr (PR #215188)

Kazu Hirata llvmlistbot at llvm.org
Mon Aug 10 00:17:39 PDT 2026


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/215188

The corresponding function definition was removed on August 25, 2021
in commit 2de2dbef2a9a0c774acc8bf1ce17d024da5c145e.


>From 3a86d70d01db60be1d141c354590000f24c9c07a Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 8 Aug 2026 15:45:25 -0700
Subject: [PATCH] [mlir] Remove dead declaration getSCFMinMaxExpr

The corresponding function definition was removed on August 25, 2021
in commit 2de2dbef2a9a0c774acc8bf1ce17d024da5c145e.
---
 mlir/include/mlir/Dialect/SCF/Utils/Utils.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/mlir/include/mlir/Dialect/SCF/Utils/Utils.h b/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
index a758032ef69b4..316bf179e22c3 100644
--- a/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
+++ b/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
@@ -87,15 +87,6 @@ LogicalResult outlineIfOp(RewriterBase &b, scf::IfOp ifOp, func::FuncOp *thenFn,
 bool getInnermostParallelLoops(Operation *rootOp,
                                SmallVectorImpl<scf::ParallelOp> &result);
 
-/// Return the min/max expressions for `value` if it is an induction variable
-/// from scf.for or scf.parallel loop.
-/// if `loopFilter` is passed, the filter determines which loop to consider.
-/// Other induction variables are ignored.
-std::optional<std::pair<AffineExpr, AffineExpr>>
-getSCFMinMaxExpr(Value value, SmallVectorImpl<Value> &dims,
-                 SmallVectorImpl<Value> &symbols,
-                 llvm::function_ref<bool(Operation *)> loopFilter = nullptr);
-
 /// Replace a perfect nest of "for" loops with a single linearized loop. Assumes
 /// `loops` contains a list of perfectly nested loops with bounds and steps
 /// independent of any loop induction variable involved in the nest.



More information about the Mlir-commits mailing list