[Mlir-commits] [mlir] [mlir][SCF] Add support for peeling the first iteration out of the loop (PR #74015)

Lei Zhang llvmlistbot at llvm.org
Fri Dec 8 22:07:34 PST 2023


================
@@ -81,6 +81,11 @@ void naivelyFuseParallelOps(Region &region);
 LogicalResult peelForLoopAndSimplifyBounds(RewriterBase &rewriter, ForOp forOp,
                                            scf::ForOp &partialIteration);
 
+/// Peel the first iteration out of the scf.for loop. If there is only one
+/// iteration, return the original loop.
+LogicalResult peelFirstIterationForLoop(RewriterBase &rewriter, ForOp forOp,
----------------
antiagainst wrote:

Nit: `peelForLoopFirstIteration` reads more natural to me.

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


More information about the Mlir-commits mailing list