[llvm] [NFC] Refactor looping over recomputeLiveIns into function (PR #88040)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 8 13:56:47 PDT 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 40327a628ace90870c7caa0db448a0f2d9863df0 bd1d52aab84d18ec007bfa04d532d5cf26df1321 -- llvm/include/llvm/CodeGen/LivePhysRegs.h llvm/lib/CodeGen/BranchFolding.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.cpp llvm/lib/Target/AArch64/AArch64InstrInfo.cpp llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp llvm/lib/Target/PowerPC/PPCFrameLowering.cpp llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp llvm/lib/Target/X86/X86FrameLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/LivePhysRegs.h b/llvm/include/llvm/CodeGen/LivePhysRegs.h
index a2447e7702..42f4f9e90f 100644
--- a/llvm/include/llvm/CodeGen/LivePhysRegs.h
+++ b/llvm/include/llvm/CodeGen/LivePhysRegs.h
@@ -211,8 +211,7 @@ static inline bool recomputeLiveIns(MachineBasicBlock &MBB) {
 
 /// Convenience function for recomputing live-in's for a set of MBBs until the
 /// computation converges.
-static inline void
-fullyRecomputeLiveIns(ArrayRef<MachineBasicBlock *> MBBs) {
+static inline void fullyRecomputeLiveIns(ArrayRef<MachineBasicBlock *> MBBs) {
   bool AnyChange;
   do {
     AnyChange = false;

``````````

</details>


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


More information about the llvm-commits mailing list