[all-commits] [llvm/llvm-project] c71038: [mlir][scf] Add getNumRegionInvocations to IfOp

Jeff Niu via All-commits all-commits at lists.llvm.org
Wed Dec 15 06:56:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7103810bde9e300f0a272f0dc55eb324f5415f2
      https://github.com/llvm/llvm-project/commit/c7103810bde9e300f0a272f0dc55eb324f5415f2
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/SCF/SCFOps.td
    M mlir/lib/Dialect/SCF/SCF.cpp
    M mlir/unittests/Dialect/CMakeLists.txt
    A mlir/unittests/Dialect/SCF/CMakeLists.txt
    A mlir/unittests/Dialect/SCF/SCFOps.cpp

  Log Message:
  -----------
  [mlir][scf] Add getNumRegionInvocations to IfOp

Implements the RegionBranchOpInterface method getNumRegionInvocations to `scf::IfOp` so that, when the condition is constant, the number of region executions can be analyzed by `NumberOfExecutions`.

Reviewed By: jpienaar, ftynse

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




More information about the All-commits mailing list