[llvm] [mlgo] inline for size: add bypass mechanism for perserving performance (PR #95616)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 15:29:13 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 53c93a33be8cc78c35eccbe75053344fc9b2346b...4b7241adf0a8d39cad600308b146ba987594e9af llvm/lib/Analysis/models/gen-inline-oz-test-model.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- gen-inline-oz-test-model.py 2024-06-14 22:23:48.000000 +0000
+++ gen-inline-oz-test-model.py 2024-06-14 22:28:44.866781 +0000
@@ -128,13 +128,13 @@
def main(argv):
assert len(argv) == 2 or (len(argv) == 3 and argv[2] == "never")
model_path = argv[1]
-
+
print(f"Output model to: [{argv[1]}]")
-
+
constant_advice = 1
if len(argv) == 3:
constant_advice = 0
print(f"The model will always return: {constant_advice}")
``````````
</details>
https://github.com/llvm/llvm-project/pull/95616
More information about the llvm-commits
mailing list