[OpenMPOpt] Use SetVector to store list of kernels.

Fixes test failures on reverse-iteration buildbot.
This commit is contained in:
Eli Friedman 2022-01-19 13:53:47 -08:00
parent 771613295d
commit 86cdff0e21
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace omp {
using Kernel = Function *;
/// Set of kernels in the module
using KernelSet = SmallPtrSet<Kernel, 4>;
using KernelSet = SetVector<Kernel>;
/// Helper to determine if \p M contains OpenMP.
bool containsOpenMP(Module &M);

View File

@ -163,7 +163,7 @@ struct AAICVTracker;
struct OMPInformationCache : public InformationCache {
OMPInformationCache(Module &M, AnalysisGetter &AG,
BumpPtrAllocator &Allocator, SetVector<Function *> &CGSCC,
SmallPtrSetImpl<Kernel> &Kernels)
KernelSet &Kernels)
: InformationCache(M, AG, Allocator, &CGSCC), OMPBuilder(M),
Kernels(Kernels) {
@ -478,7 +478,7 @@ struct OMPInformationCache : public InformationCache {
}
/// Collection of known kernels (\see Kernel) in the module.
SmallPtrSetImpl<Kernel> &Kernels;
KernelSet &Kernels;
/// Collection of known OpenMP runtime functions..
DenseSet<const Function *> RTLFunctions;