[llvm] Add the "initializes" attribute inference (PR #97373)
Jan Voung via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 08:39:09 PDT 2024
================
@@ -1844,13 +2172,13 @@ deriveAttrsInPostOrder(ArrayRef<Function *> Functions, AARGetterT &&AARGetter,
SmallSet<Function *, 8> Changed;
if (ArgAttrsOnly) {
- addArgumentAttrs(Nodes.SCCNodes, Changed);
+ addArgumentAttrs(Nodes.SCCNodes, Changed, /*SkipInitializes=*/true);
----------------
jvoung wrote:
Add a comment as to why SkipInitializes in the ArgAttrsOnly case?
https://github.com/llvm/llvm-project/pull/97373
More information about the llvm-commits
mailing list