summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-08-09 20:06:06 +0000
committerAdam Nemet <anemet@apple.com>2015-08-09 20:06:06 +0000
commit385308877ce9c77137b51db5648ef08309dfce37 (patch)
tree195fe0b11eba82011ea65376195e5125d3259ed0
parent2040548fcb7d5389e55634e3944bcfeba9afdcff (diff)
downloadbcm5719-llvm-385308877ce9c77137b51db5648ef08309dfce37.tar.gz
bcm5719-llvm-385308877ce9c77137b51db5648ef08309dfce37.zip
[LAA] Remove unused pointer partition argument from generateChecks, NFC
LoopDistribution does its own filtering now. llvm-svn: 244420
-rw-r--r--llvm/include/llvm/Analysis/LoopAccessAnalysis.h7
-rw-r--r--llvm/lib/Analysis/LoopAccessAnalysis.cpp5
2 files changed, 3 insertions, 9 deletions
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 38f09a63e64..44b7e97b7e2 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -437,13 +437,8 @@ private:
bool UseDependencies);
/// Generate the checks and return them.
- ///
- /// \p PtrToPartition contains the partition number for pointers. If passed,
- /// omit checks between pointers belonging to the same partition. Partition
- /// number -1 means that the pointer is used in multiple partitions. In this
- /// case we can't safely omit the check.
SmallVector<PointerCheck, 4>
- generateChecks(const SmallVectorImpl<int> *PtrPartition = nullptr) const;
+ generateChecks() const;
/// Holds a pointer to the ScalarEvolution analysis.
ScalarEvolution *SE;
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index f42b93d6dfa..7ebf76c6c6b 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -149,8 +149,7 @@ void RuntimePointerChecking::insert(Loop *Lp, Value *Ptr, bool WritePtr,
}
SmallVector<RuntimePointerChecking::PointerCheck, 4>
-RuntimePointerChecking::generateChecks(
- const SmallVectorImpl<int> *PtrPartition) const {
+RuntimePointerChecking::generateChecks() const {
SmallVector<PointerCheck, 4> Checks;
for (unsigned I = 0; I < CheckingGroups.size(); ++I) {
@@ -158,7 +157,7 @@ RuntimePointerChecking::generateChecks(
const RuntimePointerChecking::CheckingPtrGroup &CGI = CheckingGroups[I];
const RuntimePointerChecking::CheckingPtrGroup &CGJ = CheckingGroups[J];
- if (needsChecking(CGI, CGJ, PtrPartition))
+ if (needsChecking(CGI, CGJ))
Checks.push_back(std::make_pair(&CGI, &CGJ));
}
}
OpenPOWER on IntegriCloud