[PATCH] D130980: [AA] Model operand bundles more precisely

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 03:52:07 PDT 2022


nikic created this revision.
nikic added reviewers: asbirlea, fhahn, jdoerfert, reames, ebrevnov.
Herald added subscribers: jeroen.dobbelaere, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Based on D130896 <https://reviews.llvm.org/D130896>, we can model operand bundles more precisely. In addition to the baseline ModRefBehavior, a reading/clobbering operand bundle may also read/write all locations. For example, a memcpy with deopt bundle can read and write argument memory, but only read inaccessible and other memory.

This means that getModRefInfo() for memcpy with a pointer that does not alias the arguments results in Ref, rather than ModRef, without the need to implement any special handling.

Depends on D130896 <https://reviews.llvm.org/D130896>.


https://reviews.llvm.org/D130980

Files:
  llvm/include/llvm/Analysis/AliasAnalysis.h
  llvm/lib/Analysis/AliasAnalysis.cpp
  llvm/lib/Analysis/BasicAliasAnalysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130980.449251.patch
Type: text/x-patch
Size: 6295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/852624cd/attachment.bin>


More information about the llvm-commits mailing list