[PATCH] D21858: [CFLAA] Add support for getModRefInfo() in CFL-AA

Jia Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 13:02:12 PDT 2016


grievejia created this revision.
grievejia added reviewers: george.burgess.iv, hfinkel.
grievejia added a subscriber: llvm-commits.

Previously, CFL-AA always says "ModRef" to any getModRefInfo() queries. This patch makes CFL-AA returns slightly better answers.

The precision increase is less than I originally expected. The biggest problem here is that we don't distinguish reads from writes in our analysis (it's also useless to make the distinction, since the value we read from and the value we write to are very likely to be merged together anyway, if there's a direct/indirect assignment). Therefore, all I can do here is to return NoModRef in certain special cases, and try to be conservative otherwise. 

http://reviews.llvm.org/D21858

Files:
  include/llvm/Analysis/CFLAliasAnalysis.h
  lib/Analysis/CFLAliasAnalysis.cpp
  test/Analysis/CFLAliasAnalysis/interproc-ret-arg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21858.62270.patch
Type: text/x-patch
Size: 4800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160629/f612c88a/attachment.bin>


More information about the llvm-commits mailing list