[PATCH] D82027: Remove "unused" member ModuleSlice from `struct OpenMPOpt`
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 20:31:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG77b79d79c05f: Remove "unused" member ModuleSlice from `struct OpenMPOpt` (authored by mehdi_amini).
Changed prior to commit:
https://reviews.llvm.org/D82027?vs=271407&id=271564#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82027/new/
https://reviews.llvm.org/D82027
Files:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Index: llvm/lib/Transforms/IPO/OpenMPOpt.cpp
===================================================================
--- llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -259,8 +259,7 @@
OpenMPOpt(SmallVectorImpl<Function *> &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<Function *> &SCC;
- /// The slice of the module we are allowed to look at.
- SmallPtrSetImpl<Function *> &ModuleSlice;
-
/// Callback to update the call graph, the first argument is a removed call,
/// the second an optional replacement call.
CallGraphUpdater &CGUpdater;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82027.271564.patch
Type: text/x-patch
Size: 1536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/e474ffc3/attachment.bin>
More information about the llvm-commits
mailing list