[llvm] r243921 - [LAA] Remove unused needsAnyChecking(), NFC

Adam Nemet anemet at apple.com
Mon Aug 3 16:33:03 PDT 2015


Author: anemet
Date: Mon Aug  3 18:33:03 2015
New Revision: 243921

URL: http://llvm.org/viewvc/llvm-project?rev=243921&view=rev
Log:
[LAA] Remove unused needsAnyChecking(), NFC

Modified:
    llvm/trunk/include/llvm/Analysis/LoopAccessAnalysis.h
    llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp

Modified: llvm/trunk/include/llvm/Analysis/LoopAccessAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopAccessAnalysis.h?rev=243921&r1=243920&r2=243921&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopAccessAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopAccessAnalysis.h Mon Aug  3 18:33:03 2015
@@ -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;

Modified: llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp?rev=243921&r1=243920&r2=243921&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp Mon Aug  3 18:33:03 2015
@@ -420,17 +420,6 @@ unsigned RuntimePointerChecking::getNumb
   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.
 ///





More information about the llvm-commits mailing list