[llvm] [IPSCCP] Track returns of non-interposable definitions (PR #210374)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 09:52:48 PDT 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/Analysis/ValueLatticeUtils.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/ValueLatticeUtils.cpp b/llvm/lib/Analysis/ValueLatticeUtils.cpp
index 878768f9c..3ea3a708f 100644
--- a/llvm/lib/Analysis/ValueLatticeUtils.cpp
+++ b/llvm/lib/Analysis/ValueLatticeUtils.cpp
@@ -26,7 +26,8 @@ bool llvm::canTrackReturnsInterprocedurally(Function *F) {
   // just strong definitions) is authoritative for its return value, so return
   // attributes inferred from the body hold for whichever copy the linker keeps.
   // nobuiltin definitions are excluded: call sites may assume builtin semantics
-  // rather than the visible body, so facts from the body must not be propagated.
+  // rather than the visible body, so facts from the body must not be
+  // propagated.
   return !F->isDeclaration() && !F->isInterposable() &&
          !F->hasFnAttribute(Attribute::NoBuiltin) &&
          !F->hasFnAttribute(Attribute::Naked);

``````````

</details>


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


More information about the llvm-commits mailing list