diff options
author | Adam Nemet <anemet@apple.com> | 2015-08-07 22:44:21 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-08-07 22:44:21 +0000 |
commit | 155e8741f37ceff0473d96fd56d92854a501aebb (patch) | |
tree | 0f654a56e7f07224487f3fc5c6680e28163c5f52 /llvm/lib | |
parent | 15840393f316b8a216fb62ee750f5696d7b0052f (diff) | |
download | bcm5719-llvm-155e8741f37ceff0473d96fd56d92854a501aebb.tar.gz bcm5719-llvm-155e8741f37ceff0473d96fd56d92854a501aebb.zip |
[LAA] Remove unused pointer partition argument from getNumberOfChecks, NFC
This is unused after filtering checks was moved to the clients.
As a result, we can just return the number of the checks in the
precomputed set.
llvm-svn: 244369
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 645b47758de..f42b93d6dfa 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -412,19 +412,6 @@ void RuntimePointerChecking::print(raw_ostream &OS, unsigned Depth) const { } } -unsigned RuntimePointerChecking::getNumberOfChecks( - const SmallVectorImpl<int> *PtrPartition) const { - - unsigned NumPartitions = CheckingGroups.size(); - unsigned CheckCount = 0; - - for (unsigned I = 0; I < NumPartitions; ++I) - for (unsigned J = I + 1; J < NumPartitions; ++J) - if (needsChecking(CheckingGroups[I], CheckingGroups[J], PtrPartition)) - CheckCount++; - return CheckCount; -} - namespace { /// \brief Analyses memory accesses in a loop. /// @@ -648,7 +635,7 @@ bool AccessAnalysis::canCheckPtrAtRT(RuntimePointerChecking &RtCheck, if (NeedRTCheck && CanDoRT) RtCheck.generateChecks(DepCands, IsDepCheckNeeded); - DEBUG(dbgs() << "LAA: We need to do " << RtCheck.getNumberOfChecks(nullptr) + DEBUG(dbgs() << "LAA: We need to do " << RtCheck.getNumberOfChecks() << " pointer comparisons.\n"); RtCheck.Need = NeedRTCheck; |