[all-commits] [llvm/llvm-project] 25d027: [MLIR][SCF] Sink scf.if from scf.while before regi...

Ming Yan via All-commits all-commits at lists.llvm.org
Thu Nov 27 07:30:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25d027b8ab3acd65b58fce278f4173b431326934
      https://github.com/llvm/llvm-project/commit/25d027b8ab3acd65b58fce278f4173b431326934
  Author: Ming Yan <ming.yan at terapines.com>
  Date:   2025-11-27 (Thu, 27 Nov 2025)

  Changed paths:
    M mlir/lib/Dialect/SCF/Transforms/UpliftWhileToFor.cpp
    M mlir/test/Dialect/SCF/uplift-while.mlir

  Log Message:
  -----------
  [MLIR][SCF] Sink scf.if from scf.while before region into after region in scf-uplift-while-to-for (#165216)

When a `scf.if` directly precedes an `scf.condition` in the before
region of an `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`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list