diff options
author | Nikita Popov <npopov@redhat.com> | 2025-03-19 15:44:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 15:44:52 +0100 |
commit | 38e8dff84ba1e2cf0260712d21dd429d74471d08 (patch) | |
tree | b8c687e292b8e1313e36a18379f4190ea309042b /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 67a01131a8d70fcd06c6bd9cea30a8a6262c8c94 (diff) | |
download | llvm-38e8dff84ba1e2cf0260712d21dd429d74471d08.zip llvm-38e8dff84ba1e2cf0260712d21dd429d74471d08.tar.gz llvm-38e8dff84ba1e2cf0260712d21dd429d74471d08.tar.bz2 |
[AA][BasicAA] Move more call logic to BasicAA (#131144)
Currently, the handling for calls is split between AA and BasicAA in an
awkward way. BasicAA does argument alias analysis for non-escaping
objects (but without considering MemoryEffects), while AA handles the
generic case using MemoryEffects. However, fundamentally, both of these
are really trying to do the same thing.
The new merged logic first tries to remove the OtherMR component of the
memory effects, which includes accesses to escaped memory. If a
function-local object does not escape, OtherMR can be set to NoModRef.
Then we perform the argument scan in basically the same way as AA
previously did. However, we also need to look at the operand bundles. To
support that, I've adjusted getArgModRefInfo to accept operand bundle
arguments.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions