[LAA] Remove unused needsAnyChecking(), NFC
authorAdam Nemet <anemet@apple.com>
Mon, 3 Aug 2015 23:33:03 +0000 (23:33 +0000)
committerAdam Nemet <anemet@apple.com>
Mon, 3 Aug 2015 23:33:03 +0000 (23:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243921 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 7971bbbbd19432fdeab4fc6e9423f802cdcfb5bd..13fe49942cbb966e013f54230700b6fda5ffdc76 100644 (file)
@@ -398,10 +398,6 @@ public:
   bool needsChecking(const CheckingPtrGroup &M, const CheckingPtrGroup &N,
                      const SmallVectorImpl<int> *PtrPartition) const;
 
-  /// \brief Return true if any pointer requires run-time checking according
-  /// to needsChecking.
-  bool needsAnyChecking(const SmallVectorImpl<int> *PtrPartition) const;
-
   /// \brief Returns the number of run-time checks required according to
   /// needsChecking.
   unsigned getNumberOfChecks(const SmallVectorImpl<int> *PtrPartition) const;
index e058e5a5e1a264eee440377e345aede521f0f18c..eca98cf011c7ee3ef7bfb15b3a8cbb332fe62233 100644 (file)
@@ -420,17 +420,6 @@ unsigned RuntimePointerChecking::getNumberOfChecks(
   return CheckCount;
 }
 
-bool RuntimePointerChecking::needsAnyChecking(
-    const SmallVectorImpl<int> *PtrPartition) const {
-  unsigned NumPointers = Pointers.size();
-
-  for (unsigned I = 0; I < NumPointers; ++I)
-    for (unsigned J = I + 1; J < NumPointers; ++J)
-      if (needsChecking(I, J, PtrPartition))
-        return true;
-  return false;
-}
-
 namespace {
 /// \brief Analyses memory accesses in a loop.
 ///