[llvm] Marking the undefined sub-registers of a tuple as IMPLICIT_DEF in two address instruction pass (PR #178387)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 01:47:09 PST 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/CodeGen/RegisterCoalescer.cpp llvm/lib/CodeGen/TwoAddressInstructionPass.cpp --diff_from_common_commit
``````````
: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 clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 6ff8bd687..711fe9d7d 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -2876,8 +2876,8 @@ JoinVals::ConflictResolution JoinVals::analyzeValue(unsigned ValNo,
//
// Clearing the valid lanes is deferred until it is sure this can be
// erased.
- // IMPLICIT_DEF can also be used to intialize the undef sub-parts of a tuple
- // We want to retain those IMPLICIT_DEF.
+ // IMPLICIT_DEF can also be used to intialize the undef sub-parts of a
+ // tuple We want to retain those IMPLICIT_DEF.
if (DefMI->getOperand(0).getSubReg() == 0)
V.ErasableImplicitDef = true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/178387
More information about the llvm-commits
mailing list