diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -259,8 +259,7 @@ OpenMPOpt(SmallVectorImpl &SCC, CallGraphUpdater &CGUpdater, OptimizationRemarkGetter OREGetter, OMPInformationCache &OMPInfoCache) - : M(*(*SCC.begin())->getParent()), SCC(SCC), - ModuleSlice(OMPInfoCache.ModuleSlice), CGUpdater(CGUpdater), + : M(*(*SCC.begin())->getParent()), SCC(SCC), CGUpdater(CGUpdater), OREGetter(OREGetter), OMPInfoCache(OMPInfoCache) {} /// Run all OpenMP optimizations on the underlying SCC/ModuleSlice. @@ -268,8 +267,8 @@ bool Changed = false; LLVM_DEBUG(dbgs() << TAG << "Run on SCC with " << SCC.size() - << " functions in a slice with " << ModuleSlice.size() - << " functions\n"); + << " functions in a slice with " + << OMPInfoCache.ModuleSlice.size() << " functions\n"); Changed |= deduplicateRuntimeCalls(); Changed |= deleteParallelRegions(); @@ -611,9 +610,6 @@ /// The SCC we are operating on. SmallVectorImpl &SCC; - /// The slice of the module we are allowed to look at. - SmallPtrSetImpl &ModuleSlice; - /// Callback to update the call graph, the first argument is a removed call, /// the second an optional replacement call. CallGraphUpdater &CGUpdater;