[llvm] UpdateTestChecks: squelch warning on SCEV output (PR #67443)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 08:49:54 PDT 2023
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 e3087c4b8cee20094c1a72b94b0a7f5f543cf37d..66b303e110dcabf16d5c179eb40f5eb5626bbfba llvm/utils/UpdateTestChecks/common.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- common.py 2023-09-26 14:58:58.000000 +0000
+++ common.py 2023-09-26 15:49:48.252917 +0000
@@ -765,11 +765,14 @@
scrubbed_extra = do_scrub(
filtered_body, scrubber, self._scrubber_args, extra=True
)
if "analysis" in m.groupdict():
analysis = m.group("analysis")
- supported_analyses = {"cost model analysis", "scalar evolution analysis"}
+ supported_analyses = {
+ "cost model analysis",
+ "scalar evolution analysis",
+ }
if analysis.lower() not in supported_analyses:
warn("Unsupported analysis mode: %r!" % (analysis,))
if func.startswith("stress"):
# We only use the last line of the function body for stress tests.
scrubbed_body = "\n".join(scrubbed_body.splitlines()[-1:])
``````````
</details>
https://github.com/llvm/llvm-project/pull/67443
More information about the llvm-commits
mailing list