Ming Yan 8ceeba8381
[MLIR][SCF] Canonicalize redundant scf.if from scf.while before region into after region (#169892)
When a `scf.if` directly precedes a `scf.condition` in the before region
of a `scf.while` and both share the same condition, move the if into the
after region of the loop. This helps simplify the control flow to enable
uplifting `scf.while` to `scf.for`.
2025-12-01 18:54:21 +08:00
..

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.