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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Aug 10 00:18:13 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-scf

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/215188.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/SCF/Utils/Utils.h (-9) 


``````````diff
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.

``````````

</details>


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


More information about the Mlir-commits mailing list