[Mlir-commits] [mlir] [mlir] Add transformation to wrap scf::while in zero-trip-check (PR #81050)

Diego Caballero llvmlistbot at llvm.org
Thu Feb 8 15:00:33 PST 2024


================
@@ -183,8 +183,12 @@ FailureOr<ForOp> pipelineForLoop(RewriterBase &rewriter, ForOp forOp,
                                  bool *modifiedIR = nullptr);
 
 /// Create zero-trip-check around a `while` op and return the new loop op in the
-/// check. The while loop is rotated to avoid evaluating the condition twice. It
-/// turns:
+/// check. The while loop is rotated to avoid evaluating the condition twice
----------------
dcaballe wrote:

Extending it as needed sounds good to me!

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


More information about the Mlir-commits mailing list