llvm-project
40ff077c - [Attributor] Don't derive interface attributes from non-exact definitions (#243310)

Commit
4 hours ago
[Attributor] Don't derive interface attributes from non-exact definitions (#243310) The arguments and the return value of a function that might be replaced by another definition, e.g. a `linkonce_odr` function, are never updated. But some AAs still took known information from its body in `initialize`, which was kept and propagated to the callers: the uses of the arguments (`followUsesInMBEC`), assumptions (`getAttrsFromAssumes`), and the returned values (`AANonNull::isImpliedByIR`). Add `Attributor::canUseBodyFor` and skip the body for the interface of such functions, as FunctionAttrs does. Depends on #243247. Assisted-by: Claude Opus 5.5 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading