From 9a9814fc151b671b1e99e4e2f50f46aa96253300 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Tue, 4 Aug 2015 05:16:20 +0000 Subject: [PATCH] [LAA] Remove unused pointer partition argument from addRuntimeCheck, NFC This variant of addRuntimeCheck is only used now from the LoopVectorizer which does not use this parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243955 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LoopAccessAnalysis.h | 7 +------ lib/Analysis/LoopAccessAnalysis.cpp | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/include/llvm/Analysis/LoopAccessAnalysis.h b/include/llvm/Analysis/LoopAccessAnalysis.h index 13fe49942cb..ac0d1952f5d 100644 --- a/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/include/llvm/Analysis/LoopAccessAnalysis.h @@ -498,13 +498,8 @@ public: /// Returns a pair of instructions where the first element is the first /// instruction generated in possibly a sequence of instructions and the /// second value is the final comparator value or NULL if no check is needed. - /// - /// 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. std::pair - addRuntimeCheck(Instruction *Loc, - const SmallVectorImpl *PtrPartition = nullptr) const; + addRuntimeCheck(Instruction *Loc) const; /// \brief Generete the instructions for the checks in \p PointerChecks. /// diff --git a/lib/Analysis/LoopAccessAnalysis.cpp b/lib/Analysis/LoopAccessAnalysis.cpp index eca98cf011c..8c4ae93a64f 100644 --- a/lib/Analysis/LoopAccessAnalysis.cpp +++ b/lib/Analysis/LoopAccessAnalysis.cpp @@ -1726,11 +1726,11 @@ std::pair LoopAccessInfo::addRuntimeCheck( } std::pair LoopAccessInfo::addRuntimeCheck( - Instruction *Loc, const SmallVectorImpl *PtrPartition) const { + Instruction *Loc) const { if (!PtrRtChecking.Need) return std::make_pair(nullptr, nullptr); - return addRuntimeCheck(Loc, PtrRtChecking.generateChecks(PtrPartition)); + return addRuntimeCheck(Loc, PtrRtChecking.generateChecks()); } LoopAccessInfo::LoopAccessInfo(Loop *L, ScalarEvolution *SE, -- 2.34.1