From a8dad3038816cdc664c1265c65429f7aac109362 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 17 Jun 2020 14:45:17 -0700 Subject: [PATCH] Revert "Remove unused class variable ModuleSlice." as it was used in debug only code. This reverts commit 07a1749081bac07515d357fd96165662031de527. --- llvm/lib/Transforms/IPO/OpenMPOpt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index bd44170..9a0e085 100644 --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -259,7 +259,8 @@ struct OpenMPOpt { OpenMPOpt(SmallVectorImpl &SCC, CallGraphUpdater &CGUpdater, OptimizationRemarkGetter OREGetter, OMPInformationCache &OMPInfoCache) - : M(*(*SCC.begin())->getParent()), SCC(SCC), CGUpdater(CGUpdater), + : M(*(*SCC.begin())->getParent()), SCC(SCC), + ModuleSlice(OMPInfoCache.ModuleSlice), CGUpdater(CGUpdater), OREGetter(OREGetter), OMPInfoCache(OMPInfoCache) {} /// Run all OpenMP optimizations on the underlying SCC/ModuleSlice. @@ -610,6 +611,9 @@ private: /// 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; -- 2.7.4