[Mlir-commits] [mlir] [mlir][scf] Uplift `scf.while` to `scf.for` (PR #76108)
Matthias Springer
llvmlistbot at llvm.org
Wed Dec 20 20:10:22 PST 2023
================
@@ -154,4 +154,20 @@ def SCFForToWhileLoop : Pass<"scf-for-to-while"> {
}];
}
+def SCFUpliftWhileToFor : Pass<"scf-uplift-while-to-for"> {
+ let summary = "Uplift scf.while ops to scf.for";
+ let description = [{
+ This pass tries to uplift `scf.while` ops to `scf.for` if they have a
+ compatible form. `scf.while` are left unchanged if uplifting is not
+ possible.
----------------
matthias-springer wrote:
I would mention here what the expected form of the `scf.while` is.
https://github.com/llvm/llvm-project/pull/76108
More information about the Mlir-commits
mailing list