[llvm] [PeepholeOptimizer] Add REG_SEQUENCE subregister use folding (PR #205795)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 08:26:22 PDT 2026


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 origin/main...HEAD llvm/utils/git/code-format-helper.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- code-format-helper.py	2026-06-26 14:49:58.000000 +0000
+++ code-format-helper.py	2026-06-26 15:09:52.330328 +0000
@@ -429,11 +429,15 @@
             # easy to do.
             if filename.endswith(".ll"):
                 try:
                     with open(filename, "r") as f:
                         first_line = f.readline()
-                        if re.search(r"NOTE:.*autogenerated.*update_mir_test_checks", first_line, re.IGNORECASE):
+                        if re.search(
+                            r"NOTE:.*autogenerated.*update_mir_test_checks",
+                            first_line,
+                            re.IGNORECASE,
+                        ):
                             continue
                 except (FileNotFoundError, IOError):
                     continue
 
             if filename.endswith(".ll"):

``````````

</details>


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


More information about the llvm-commits mailing list