[llvm] [LLVM-Reduce] - Distinct Metadata Reduction (PR #104624)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 09:15:01 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 c4bf949171a72383d5ba4d2b587d4cc496aacebb...c158a38d724e635ff296c0c76aa860ec4733fb6e llvm/test/tools/llvm-reduce/Inputs/reduce-distinct-metadata.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- reduce-distinct-metadata.py	2024-08-16 17:50:06.000000 +0000
+++ reduce-distinct-metadata.py	2024-08-19 16:14:30.546578 +0000
@@ -7,13 +7,13 @@
 
 depth_map = {"0": 1, "1": 3, "2": 3, "3": 2, "4": 1}
 
 
 for i in range(len(depth_map)):
-    counter = 0 
+    counter = 0
     for line in input:
-      if re.match(rf".*interesting_{i}.*", line) != None:
-        counter += 1
+        if re.match(rf".*interesting_{i}.*", line) != None:
+            counter += 1
     if counter != depth_map[str(i)]:
-      sys.exit(1)
+        sys.exit(1)
 
 sys.exit(0)

``````````

</details>


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


More information about the llvm-commits mailing list