Skip to content

Commit 8bd93b8

Browse files
authored
[OpenMP][NFC] Do not collect kernels if they are not used (#135252)
1 parent 72540db commit 8bd93b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5856,8 +5856,6 @@ PreservedAnalyses OpenMPOptCGSCCPass::run(LazyCallGraph::SCC &C,
58565856
if (PrintModuleBeforeOptimizations)
58575857
LLVM_DEBUG(dbgs() << TAG << "Module before OpenMPOpt CGSCC Pass:\n" << M);
58585858

5859-
KernelSet Kernels = getDeviceKernels(M);
5860-
58615859
FunctionAnalysisManager &FAM =
58625860
AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager();
58635861

0 commit comments

Comments
 (0)