diff options
author | Arthur Eubanks <aeubanks@google.com> | 2024-06-24 10:03:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 09:03:56 -0700 |
commit | b312cbf921422fc30615b1311b235a8cb31453d9 (patch) | |
tree | 1aeb25ae2ed653fc66b1299298081ce117d18360 | |
parent | f985a8826bfa4ca3d23e654185de35e30ea6dc79 (diff) | |
download | llvm-b312cbf921422fc30615b1311b235a8cb31453d9.zip llvm-b312cbf921422fc30615b1311b235a8cb31453d9.tar.gz llvm-b312cbf921422fc30615b1311b235a8cb31453d9.tar.bz2 |
[NFC][CGSCC] Remove RCWorklist from CGSCCUpdateResult (#95448)
After #94815, this is only used within
ModuleToPostOrderCGSCCPassAdaptor::run(), so keep it local to that
function.
-rw-r--r-- | llvm/include/llvm/Analysis/CGSCCPassManager.h | 11 | ||||
-rw-r--r-- | llvm/lib/Analysis/CGSCCPassManager.cpp | 12 |
2 files changed, 8 insertions, 15 deletions
diff --git a/llvm/include/llvm/Analysis/CGSCCPassManager.h b/llvm/include/llvm/Analysis/CGSCCPassManager.h index b19d536..59974d1 100644 --- a/llvm/include/llvm/Analysis/CGSCCPassManager.h +++ b/llvm/include/llvm/Analysis/CGSCCPassManager.h @@ -230,17 +230,6 @@ using ModuleAnalysisManagerCGSCCProxy = /// Passes which do not change the call graph structure in any way can just /// ignore this argument to their run method. struct CGSCCUpdateResult { - /// Worklist of the RefSCCs queued for processing. - /// - /// When a pass refines the graph and creates new RefSCCs or causes them to - /// have a different shape or set of component SCCs it should add the RefSCCs - /// to this worklist so that we visit them in the refined form. - /// - /// This worklist is in reverse post-order, as we pop off the back in order - /// to observe RefSCCs in post-order. When adding RefSCCs, clients should add - /// them in reverse post-order. - SmallPriorityWorklist<LazyCallGraph::RefSCC *, 1> &RCWorklist; - /// Worklist of the SCCs queued for processing. /// /// When a pass refines the graph and creates new SCCs or causes them to have diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp index 2ed1d98..24b3c6e 100644 --- a/llvm/lib/Analysis/CGSCCPassManager.cpp +++ b/llvm/lib/Analysis/CGSCCPassManager.cpp @@ -160,10 +160,14 @@ ModuleToPostOrderCGSCCPassAdaptor::run(Module &M, ModuleAnalysisManager &AM) { SmallVector<Function *, 4> DeadFunctions; - CGSCCUpdateResult UR = { - RCWorklist, CWorklist, InvalidRefSCCSet, - InvalidSCCSet, nullptr, PreservedAnalyses::all(), - InlinedInternalEdges, DeadFunctions, {}}; + CGSCCUpdateResult UR = {CWorklist, + InvalidRefSCCSet, + InvalidSCCSet, + nullptr, + PreservedAnalyses::all(), + InlinedInternalEdges, + DeadFunctions, + {}}; // Request PassInstrumentation from analysis manager, will use it to run // instrumenting callbacks for the passes later. |