[PATCH] D102363: [OpenMP] Prevent Attributor from deleting functions in OpenMPOptCGSCC pass
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 13:36:37 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8b57ed09bd23: [OpenMP] Prevent Attributor from deleting functions in OpenMPOptCGSCC pass (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102363/new/
https://reviews.llvm.org/D102363
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
@@ -2547,7 +2547,7 @@
OMPInformationCache InfoCache(*(Functions.back()->getParent()), AG, Allocator,
/*CGSCC*/ Functions, OMPInModule.getKernels());
- Attributor A(Functions, InfoCache, CGUpdater);
+ Attributor A(Functions, InfoCache, CGUpdater, nullptr, false);
OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
bool Changed = OMPOpt.run(false);
@@ -2556,6 +2556,7 @@
return PreservedAnalyses::all();
}
+
namespace {
struct OpenMPOptCGSCCLegacyPass : public CallGraphSCCPass {
@@ -2622,7 +2623,7 @@
*(Functions.back()->getParent()), AG, Allocator,
/*CGSCC*/ Functions, OMPInModule.getKernels());
- Attributor A(Functions, InfoCache, CGUpdater);
+ Attributor A(Functions, InfoCache, CGUpdater, nullptr, false);
OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
return OMPOpt.run(false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102363.345267.patch
Type: text/x-patch
Size: 1098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210513/227eb561/attachment.bin>
More information about the llvm-commits
mailing list