[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:39 PST 2023


================
@@ -191,6 +191,23 @@ static void rewriteAffineOpAfterPeeling(RewriterBase &rewriter, ForOp forOp,
   });
 }
 
+static void removeAffineOpInsideFirstIteration(RewriterBase &rewriter,
+                                               ForOp partialIteration,
+                                               Value previousUb) {
----------------
antiagainst wrote:

Nit: I'd suggest to name the parameters as `firstIteration` and `originalUb`, which i think is clearer than `partialIteration` and `previousUb`.

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


More information about the Mlir-commits mailing list