[llvm] [MachineLateInstrsCleanup] Minor fixing (NFC). (PR #117816)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 16:34:45 PST 2024


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 3cb28522ba4c2b80fbaf0840377aab4fce985110 14eb0e0819916a914913aa8621c24d1ce9e4c340 --extensions cpp -- llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp b/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp
index fe91bd7c6a..6399e8a952 100644
--- a/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp
+++ b/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp
@@ -111,9 +111,9 @@ bool MachineLateInstrsCleanup::runOnMachineFunction(MachineFunction &MF) {
 
 // Clear any preceding kill flag on Reg after removing a redundant
 // definition.
-void MachineLateInstrsCleanup::
-clearKillsForDef(Register Reg, MachineBasicBlock *MBB,
-                 BitVector &VisitedPreds) {
+void MachineLateInstrsCleanup::clearKillsForDef(Register Reg,
+                                                MachineBasicBlock *MBB,
+                                                BitVector &VisitedPreds) {
   VisitedPreds.set(MBB->getNumber());
 
   // Kill flag in MBB

``````````

</details>


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


More information about the llvm-commits mailing list