[PATCH] D84410: [LAA] Dynamically allocate RuntimeCheckingPtrGroup (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 07:30:39 PDT 2020


fhahn created this revision.
fhahn added reviewers: Ayal, anemet, hfinkel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Currently parts in RuntimePointerChecking owns
RuntimeCheckingPtrGroup directly, which is reference from other
datastructures in RuntimePointerChecking. This prevents copying of
RuntimePointerChecking and couples things tightly.

This patch allows sharing, which will be used in a follow-on patch. It
use shared_ptr, but alternatively LAI could own the groups, but that
might couple LAI and RuntimePointerChecking unnecessarily.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84410

Files:
  llvm/include/llvm/Analysis/LoopAccessAnalysis.h
  llvm/lib/Analysis/LoopAccessAnalysis.cpp
  llvm/lib/Transforms/Utils/LoopVersioning.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84410.280110.patch
Type: text/x-patch
Size: 4576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200723/b994118d/attachment.bin>


More information about the llvm-commits mailing list