[llvm] [CycleInfo] Remove GenericCycle::TopLevelCycle. NFC (PR #209677)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 22:54:00 PDT 2026
================
@@ -311,9 +308,6 @@ void GenericCycleInfo<ContextT>::moveTopLevelCycleToNewParent(CycleT *NewParent,
*Pos = std::move(CurrentContainer.back());
CurrentContainer.pop_back();
Child->ParentCycle = NewParent;
- Child->TopLevelCycle = NewParent;
- for (CycleT *Cycle : depth_first(Child))
----------------
aengelke wrote:
Maybe we should at some point drop GraphTraits for Cycle to prevent accidental use of these inefficient iterators?
https://github.com/llvm/llvm-project/pull/209677
More information about the llvm-commits
mailing list