[Mlir-commits] [mlir] [mlir][scf] DCE `ensureLoopTerminator` (PR #121237)

Maksim Levental llvmlistbot at llvm.org
Fri Dec 27 15:21:37 PST 2024


https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/121237

More dead code in headers...

>From 930b9f0bcb60c49c68e7b71f55c5185262844afd Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Fri, 27 Dec 2024 17:21:25 -0600
Subject: [PATCH] [mlir][scf] DCE `ensureLoopTerminator`

More dead code in headers...
---
 mlir/include/mlir/Dialect/SCF/IR/SCF.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCF.h b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
index b62c9417979478..ba648181daecb4 100644
--- a/mlir/include/mlir/Dialect/SCF/IR/SCF.h
+++ b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
@@ -40,12 +40,6 @@ void buildTerminatedBody(OpBuilder &builder, Location loc);
 namespace mlir {
 namespace scf {
 
-// Insert `loop.yield` at the end of the only region's only block if it
-// does not have a terminator already.  If a new `loop.yield` is inserted,
-// the location is specified by `loc`. If the region is empty, insert a new
-// block first.
-void ensureLoopTerminator(Region &region, Builder &builder, Location loc);
-
 /// Returns the loop parent of an induction variable. If the provided value is
 /// not an induction variable, then return nullptr.
 ForOp getForInductionVarOwner(Value val);



More information about the Mlir-commits mailing list