[BasicAA] Don't consider Argument as escape source (NFCI)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 25 Sep 2021 20:01:28 +0000 (22:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 25 Sep 2021 20:08:15 +0000 (22:08 +0200)
commit1c3859f31d0ef8e99c4aabbcfd11e5eea03e3c15
treef97eb0823645a131286cc49009ae8c8b51908db8
parent897eb579c615260d68fee7ecc11a5d1773fa3781
[BasicAA] Don't consider Argument as escape source (NFCI)

The case of an Argument and an identified function local is already
handled earlier, because we don't care about captures in that case.
As such, we don't need to additionally consider the combination of
an Argument with a non-escaping identified function local.

This ensures that isEscapeSource() only returns true for
instructions, which is necessary for D110368.
llvm/lib/Analysis/BasicAliasAnalysis.cpp