diff options
Diffstat (limited to 'mlir/include/mlir/Transforms/Passes.td')
-rw-r--r-- | mlir/include/mlir/Transforms/Passes.td | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mlir/include/mlir/Transforms/Passes.td b/mlir/include/mlir/Transforms/Passes.td index 1cc357ca1f9f..62b8dd075f21 100644 --- a/mlir/include/mlir/Transforms/Passes.td +++ b/mlir/include/mlir/Transforms/Passes.td @@ -189,6 +189,21 @@ def Mem2Reg : Pass<"mem2reg"> { This pass only supports unstructured control-flow. Promotion of operations within subregions will not happen. }]; + + let options = [ + Option<"enableRegionSimplification", "region-simplify", "bool", + /*default=*/"true", + "Perform control flow optimizations to the region tree">, + ]; + + let statistics = [ + Statistic<"promotedAmount", + "promoted slots", + "Number of promoted memory slot">, + Statistic<"newBlockArgumentAmount", + "new block args", + "Total number of block arguments added">, + ]; } def PrintOpStats : Pass<"print-op-stats"> { |