[llvm] [GlobalISel] Remove dead VRegs after instruction selection (PR #73892)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 19:01:48 PST 2023


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 3cf190974a37d18c7bd6f52b9588f4104e8e96f0 99c89a4de24fa1154b15b4c375f83c6f41167a9d -- llvm/include/llvm/CodeGen/MachineRegisterInfo.h llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp llvm/lib/CodeGen/MachineRegisterInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
index 01190195c9..6e7a509a1c 100644
--- a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -788,9 +788,9 @@ public:
   /// clearVirtRegs - Remove all virtual registers (after physreg assignment).
   void clearVirtRegs();
 
-  /// clearDeadVirtRegs - Remove virtual registers without a definition and uses.
-  /// Since virtual registers are linear and can be removed only from the end,
-  /// register ids will be shuffled.
+  /// clearDeadVirtRegs - Remove virtual registers without a definition and
+  /// uses. Since virtual registers are linear and can be removed only from the
+  /// end, register ids will be shuffled.
   void clearDeadVirtRegs();
 
   /// setRegAllocationHint - Specify a register allocation hint for the

``````````

</details>


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


More information about the llvm-commits mailing list