[all-commits] [llvm/llvm-project] d8a6a6: [MLIR][SCF] Place hoisted scf.if->select prior to ...

William Moses via All-commits all-commits at lists.llvm.org
Fri Mar 18 19:14:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d8a6a696bfa14f9d209cee2aa0442d7cbc11679c
      https://github.com/llvm/llvm-project/commit/d8a6a696bfa14f9d209cee2aa0442d7cbc11679c
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M mlir/lib/Dialect/SCF/SCF.cpp
    M mlir/test/Dialect/SCF/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][SCF] Place hoisted scf.if->select prior to the remaining if

This patch slightly updates the behavior of scf.if->select to
place any hoisted select statements prior to the remaining scf.if body.

This allows better composition with other canonicalization passes, such as
scf.if nested merging.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D122027




More information about the All-commits mailing list