[AST] Adapt Polly to AnalysisSetTracker changes. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Fri, 17 Aug 2018 19:31:41 +0000 (19:31 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 17 Aug 2018 19:31:41 +0000 (19:31 +0000)
The method AliasSetTracker::getAliasSetForPointer was removed and replaced by AliasSetTracker::getAliasSetFor for the restructuring in r339930.

Since Polly uses AliasSetTracker::getAliasSetForPointer, a temporary fix has been committed in r339937 with a comment:

     Can someone from polly please migrate usage and then delete the wrapper?

This commit is doing exactly that.

llvm-svn: 340072

llvm/include/llvm/Analysis/AliasSetTracker.h
polly/lib/Analysis/ScopDetection.cpp

index abe96f9..106b973 100644 (file)
@@ -399,13 +399,6 @@ public:
   /// set is returned.  
   AliasSet &getAliasSetFor(const MemoryLocation &MemLoc);
 
-  AliasSet &getAliasSetForPointer(Value *P, LocationSize Size,
-                                  const AAMDNodes &AAInfo) {
-    // This adapter exists so that polly can be updated to the new API.  Once
-    // done, please delete this.
-    return getAliasSetFor(MemoryLocation(P, Size, AAInfo));
-  }
-
   /// Return true if the specified instruction "may" (or must) alias one of the
   /// members in any of the sets.
   bool containsUnknown(const Instruction *I) const;
index 7108794..41b9aaf 100644 (file)
@@ -1136,8 +1136,8 @@ bool ScopDetection::isValidAccess(Instruction *Inst, const SCEV *AF,
   // any other pointer. This cannot be handled at the moment.
   AAMDNodes AATags;
   Inst->getAAMetadata(AATags);
-  AliasSet &AS = Context.AST.getAliasSetForPointer(
-      BP->getValue(), MemoryLocation::UnknownSize, AATags);
+  AliasSet &AS = Context.AST.getAliasSetFor(
+      MemoryLocation(BP->getValue(), MemoryLocation::UnknownSize, AATags));
 
   if (!AS.isMustAlias()) {
     if (PollyUseRuntimeAliasChecks) {