[PATCH] CFLAA Bugfix -- Tag untrackable pointers (inttoptr/ptrtoint)
George Burgess IV
george.burgess.iv at gmail.com
Thu Mar 5 20:33:56 PST 2015
Hi dberlin, hfinkel,
// Hal already LGTM'ed this for style, I'm putting it here so any discussions about design are published, as requested. :)
This patch notes that pointers passed to inttoptr/ptrtoint can escape.
- Used StratifiedAttrs instead of one-way edges because StratifiedAttrs don't union everything (the advantage of one-way edges), and we get propagation of the Unknown attribute to sets "below" the Unknown one for free.
- Explicitly omitted from this patch: special handling of Unknown StratifiedAttrs. An Unknown attribute on some set only forces a MayAlias if the set it's being compared to has any StratifiedAttrs set (interacts with an argument not marked as noalias, a global, or inttoptr/ptrtoint). I can't see how this can be broken, but feedback is appreciated.
http://reviews.llvm.org/D8098
Files:
lib/Analysis/CFLAliasAnalysis.cpp
test/Analysis/CFLAliasAnalysis/branch-alias.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8098.21328.patch
Type: text/x-patch
Size: 4951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150306/5e119a4b/attachment.bin>
More information about the llvm-commits
mailing list