[flang-commits] [flang] [llvm] [llvm] Improve llvm.objectsize computation by computing GEP, alloca a… (PR #117849)

via flang-commits flang-commits at lists.llvm.org
Tue Nov 26 22:19:55 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 40d0058e6ad16d4716192a0e331ac58a6ed9def3 2f1082babfc8d4a234883c0a6157c2ebcb820155 --extensions cpp,h -- flang/include/flang/Runtime/descriptor.h flang/runtime/io-api-minimal.cpp llvm/include/llvm/IR/Value.h llvm/lib/Analysis/MemoryBuiltins.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index 93dfdfadff..5c29bc1303 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -699,8 +699,7 @@ static std::optional<APInt> aggregatePossibleConstantValuesImpl(
         aggregatePossibleConstantValuesImpl(SI->getFalseValue(), EvalMode,
                                             recursionDepth + 1),
         EvalMode);
-  }
-  else if (const auto *PN = dyn_cast<PHINode>(V)) {
+  } else if (const auto *PN = dyn_cast<PHINode>(V)) {
     unsigned Count = PN->getNumIncomingValues();
     if (Count == 0)
       return std::nullopt;

``````````

</details>


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


More information about the flang-commits mailing list