From: Adam Nemet Date: Fri, 7 Aug 2015 19:44:48 +0000 (+0000) Subject: [LAA] Remove unused pointer partition argument from print(), NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ae57e1b53d3e5d238eb260a7ab9f07aa7f37f14;p=oota-llvm.git [LAA] Remove unused pointer partition argument from print(), NFC 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 --- diff --git a/include/llvm/Analysis/LoopAccessAnalysis.h b/include/llvm/Analysis/LoopAccessAnalysis.h index ac0d1952f5d..46a83a1c928 100644 --- a/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/include/llvm/Analysis/LoopAccessAnalysis.h @@ -403,12 +403,7 @@ public: unsigned getNumberOfChecks(const SmallVectorImpl *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 *PtrPartition = nullptr) const; + void print(raw_ostream &OS, unsigned Depth = 0) const; /// Print \p Checks. void printChecks(raw_ostream &OS, const SmallVectorImpl &Checks, diff --git a/lib/Analysis/LoopAccessAnalysis.cpp b/lib/Analysis/LoopAccessAnalysis.cpp index 8c4ae93a64f..c41ecdad9db 100644 --- a/lib/Analysis/LoopAccessAnalysis.cpp +++ b/lib/Analysis/LoopAccessAnalysis.cpp @@ -386,12 +386,10 @@ void RuntimePointerChecking::printChecks( } } -void RuntimePointerChecking::print( - raw_ostream &OS, unsigned Depth, - const SmallVectorImpl *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) {