[clang] [AArch64] Stack probing for dynamic allocas in SelectionDAG (PR #66525)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 05:32:24 PDT 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 5d35273a32d239b7407338e13ed71b59174d6536 e32ff3b92cbbf074567d6d04f7ec5c1f3b9b27a5 -- clang/lib/CodeGen/CodeGenModule.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/test/CodeGen/stack-clash-protection.c llvm/lib/CodeGen/CFIFixup.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.h llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.h llvm/lib/Target/AArch64/AArch64InstrInfo.cpp llvm/lib/Target/AArch64/AArch64InstrInfo.h llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/CFIFixup.cpp b/llvm/lib/CodeGen/CFIFixup.cpp
index 7269616e3fff..964a8d56511f 100644
--- a/llvm/lib/CodeGen/CFIFixup.cpp
+++ b/llvm/lib/CodeGen/CFIFixup.cpp
@@ -100,7 +100,8 @@ static bool containsEpilogue(const MachineBasicBlock &MBB) {
 static MachineBasicBlock *
 findPrologueEnd(MachineFunction &MF, MachineBasicBlock::iterator &PrologueEnd) {
   MachineBasicBlock *PrologueBlock = nullptr;
-  for (auto It = po_begin(&MF.front()), End = po_end(&MF.front()); It != End; ++It) {
+  for (auto It = po_begin(&MF.front()), End = po_end(&MF.front()); It != End;
+       ++It) {
     MachineBasicBlock *MBB = *It;
     llvm::for_each(MBB->instrs(), [&](MachineInstr &MI) {
       if (isPrologueCFIInstruction(MI)) {

``````````

</details>


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


More information about the cfe-commits mailing list