[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 05:33:40 PST 2025


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 beba4b08f72152abbb7d26df024f0d9338a7038b 3394de2037ee3c41b97469fd751a18b1d5cb4b3c --extensions cpp,h -- llvm/include/llvm/CodeGen/ReachingDefAnalysis.h llvm/lib/CodeGen/ReachingDefAnalysis.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
index 85a2d023f2..3afeebce40 100644
--- a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+++ b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
@@ -247,7 +247,8 @@ void ReachingDefAnalysis::printAllReachingDefs(MachineFunction &MF) {
         Register Reg;
         if (MO.isFI()) {
           int FrameIndex = MO.getIndex();
-          assert(FrameIndex >= 0 && "Can't handle negative frame indicies yet!");
+          assert(FrameIndex >= 0 &&
+                 "Can't handle negative frame indicies yet!");
           Reg = Register::index2StackSlot(FrameIndex);
         } else if (MO.isReg()) {
           if (MO.isDef())

``````````

</details>


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


More information about the llvm-commits mailing list