[Mlir-commits] [mlir] [mlir][inliner] Return early if the inliningThreshold is 0U or -1U. (PR #86287)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Mar 22 07:27:15 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f82d0187a7e581d4f8f825021dbcb08e8eb37d61 9df57cb2dd39be8c6bde24866625740812cb8fec -- mlir/lib/Transforms/InlinerPass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Transforms/InlinerPass.cpp b/mlir/lib/Transforms/InlinerPass.cpp
index 428bb6aa5c..58b3535b4e 100644
--- a/mlir/lib/Transforms/InlinerPass.cpp
+++ b/mlir/lib/Transforms/InlinerPass.cpp
@@ -93,7 +93,7 @@ InlinerPass::InlinerPass(std::function<void(OpPassManager &)> defaultPipeline,
// Return true if the inlining ratio does not exceed the threshold.
static bool isProfitableToInline(const Inliner::ResolvedCall &resolvedCall,
unsigned inliningThreshold) {
- // ratio <= 0U will always be false.
+ // ratio <= 0U will always be false.
if (inliningThreshold == 0U)
return false;
// ratio <= -1U will always be true.
``````````
</details>
https://github.com/llvm/llvm-project/pull/86287
More information about the Mlir-commits
mailing list