[llvm] Resolve FIXME: Swap adds <-> subs offset is 0 (PR #78870)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 20 17:53:08 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 2759e47067ea286f6302adcfe93b653cfaf6f2eb e6bd69f9b692a90c850b65ff9f43ba4eb905ce31 -- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
index fee0f0c934..fb7c8be0cc 100644
--- a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -535,7 +535,8 @@ void ARMLoadStoreOpt::UpdateBaseRegUses(MachineBasicBlock &MBB,
             Offset = -Offset;
           } else if (Offset == 0) {
             // Erase instruction if Offset == 0
-            LLVM_DEBUG(dbgs() << "  Erasing instruction due to offset being 0: " << *MBBI);
+            LLVM_DEBUG(dbgs() << "  Erasing instruction due to offset being 0: "
+                              << *MBBI);
             MBB.erase(MBBI);
             return;
           }

``````````

</details>


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


More information about the llvm-commits mailing list