[PATCH] D11547: AliasSetTracker "fixme" fix - using mod/ref information for UnknownInstr

Andrew Zhogin andrew.zhogin at gmail.com
Mon Jul 27 16:36:20 PDT 2015


andrew.zhogin created this revision.
andrew.zhogin added reviewers: hfinkel, chandlerc.
andrew.zhogin added a subscriber: llvm-commits.

AliasSetTracker now doesn't convert access mode to ModRefAccess if new visited UnknownInst has only 'REF' modrefinfo to existing pointers is sets.

And ref-aliased by call pointers can be hoisted out of loop.

// FIXME: This should use mod/ref information to make this not suck so bad
Alias = SetMayAlias;
- Access = ModRefAccess;
+  Access = (MR & MRI_Mod) ? ModRefAccess : RefAccess;


http://reviews.llvm.org/D11547

Files:
  include/llvm/Analysis/AliasSetTracker.h
  lib/Analysis/AliasSetTracker.cpp
  test/Transforms/LICM/licm_call_referenced_ptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11547.30761.patch
Type: text/x-patch
Size: 12312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150727/d4b7d42a/attachment.bin>


More information about the llvm-commits mailing list