[LAA] Remove unused pointer partition argument from print(), NFC
authorAdam Nemet <anemet@apple.com>
Fri, 7 Aug 2015 19:44:48 +0000 (19:44 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 7 Aug 2015 19:44:48 +0000 (19:44 +0000)
This is now handled in the client.  No need for LAA to provide this
variant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244349 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp

index ac0d1952f5d179be52271f24c872a594538b4d8e..46a83a1c92898811ff9d20e77f6de156dcbba365 100644 (file)
@@ -403,12 +403,7 @@ public:
   unsigned getNumberOfChecks(const SmallVectorImpl<int> *PtrPartition) const;
 
   /// \brief Print the list run-time memory checks necessary.
-  ///
-  /// If \p PtrPartition is set, it contains the partition number for
-  /// pointers (-1 if the pointer belongs to multiple partitions).  In this
-  /// case omit checks between pointers belonging to the same partition.
-  void print(raw_ostream &OS, unsigned Depth = 0,
-             const SmallVectorImpl<int> *PtrPartition = nullptr) const;
+  void print(raw_ostream &OS, unsigned Depth = 0) const;
 
   /// Print \p Checks.
   void printChecks(raw_ostream &OS, const SmallVectorImpl<PointerCheck> &Checks,
index 8c4ae93a64ffd4ce3d17e28a7df8408c45367d16..c41ecdad9dbb2a37aef9aa48761d67b78e238bbe 100644 (file)
@@ -386,12 +386,10 @@ void RuntimePointerChecking::printChecks(
   }
 }
 
-void RuntimePointerChecking::print(
-    raw_ostream &OS, unsigned Depth,
-    const SmallVectorImpl<int> *PtrPartition) const {
+void RuntimePointerChecking::print(raw_ostream &OS, unsigned Depth) const {
 
   OS.indent(Depth) << "Run-time memory checks:\n";
-  printChecks(OS, generateChecks(PtrPartition), Depth);
+  printChecks(OS, generateChecks(), Depth);
 
   OS.indent(Depth) << "Grouped accesses:\n";
   for (unsigned I = 0; I < CheckingGroups.size(); ++I) {