[PATCH] D30849: Use a WeakVH for UnknownInstructions in AliasSetTracker
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 14:30:41 PST 2017
sanjoy created this revision.
Herald added a subscriber: mcrosier.
This change solves the same problem as https://reviews.llvm.org/D30726, except that this only
throws out the bathwater.
AST was not correctly tracking and deleting UnknownInstructions via
handles. The existing code only tracks "pointers" in its
`ASTCallbackVH`, so an UnknownInstruction (that isn't also def'ing a
pointer used by another memory instruction) never gets a
`ASTCallbackVH`.
There are two other ways to solve this problem:
- Use the `PointerRec` scheme for both known and unknown instructions.
- Use a `CallbackVH` that erases the offending Instruction from the UnknownInstruction list.
Both of the above changes seemed to be significantly (and unnecessarily
IMO) more complex than this.
https://reviews.llvm.org/D30849
Files:
include/llvm/Analysis/AliasSetTracker.h
lib/Analysis/AliasSetTracker.cpp
test/Transforms/LICM/pr32129.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30849.91415.patch
Type: text/x-patch
Size: 4218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170310/cef766a3/attachment.bin>
More information about the llvm-commits
mailing list