[Mlir-commits] [mlir] [RFC][mlir] Add profitability callback to the Inliner. (PR #84258)

Mehdi Amini llvmlistbot at llvm.org
Tue Mar 12 15:59:58 PDT 2024


================
@@ -278,6 +278,13 @@ def Inliner : Pass<"inline"> {
     Option<"maxInliningIterations", "max-iterations", "unsigned",
            /*default=*/"4",
            "Maximum number of iterations when inlining within an SCC">,
+    Option<"inliningThreshold", "inlining-threshold", "unsigned",
+           /*default=*/"-1U",
+           "If the ratio between the number of the operations "
+           "in the callee and the number of the operations "
+           "in the caller exceeds this value (in percentages), "
----------------
joker-eph wrote:

```suggestion
           "in the caller exceeds this value (in percentage), "
```

https://github.com/llvm/llvm-project/pull/84258


More information about the Mlir-commits mailing list