llvm.org GIT mirror llvm / 85fb628
[LAA] Remove unused pointer partition argument from generateChecks, NFC LoopDistribution does its own filtering now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244420 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 4 years ago
2 changed file(s) with 3 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
436436 bool UseDependencies);
437437
438438 /// Generate the checks and return them.
439 ///
440 /// \p PtrToPartition contains the partition number for pointers. If passed,
441 /// omit checks between pointers belonging to the same partition. Partition
442 /// number -1 means that the pointer is used in multiple partitions. In this
443 /// case we can't safely omit the check.
444439 SmallVector
445 generateChecks(const SmallVectorImpl *PtrPartition = nullptr) const;
440 generateChecks() const;
446441
447442 /// Holds a pointer to the ScalarEvolution analysis.
448443 ScalarEvolution *SE;
148148 }
149149
150150 SmallVector
151 RuntimePointerChecking::generateChecks(
152 const SmallVectorImpl *PtrPartition) const {
151 RuntimePointerChecking::generateChecks() const {
153152 SmallVector Checks;
154153
155154 for (unsigned I = 0; I < CheckingGroups.size(); ++I) {
157156 const RuntimePointerChecking::CheckingPtrGroup &CGI = CheckingGroups[I];
158157 const RuntimePointerChecking::CheckingPtrGroup &CGJ = CheckingGroups[J];
159158
160 if (needsChecking(CGI, CGJ, PtrPartition))
159 if (needsChecking(CGI, CGJ))
161160 Checks.push_back(std::make_pair(&CGI, &CGJ));
162161 }
163162 }