Avoid exposing details about how roots are stored. This enables subsequent
type-erasure changes.
Change-Id: I532b774cc71f2224e543bc7d79131d97f63f093d
Paths
| Differential D83085
DomTree: Remove getRoots() accessor ClosedPublic Authored by nhaehnle on Jul 2 2020, 2:07 PM.
Details Summary Avoid exposing details about how roots are stored. This enables subsequent Change-Id: I532b774cc71f2224e543bc7d79131d97f63f093d
Diff Detail
Event Timelinenhaehnle added a parent revision: D83084: DomTree: Remove the releaseMemory() method.Jul 2 2020, 2:10 PM Comment Actions This is more consistent with other iteratables
This revision is now accepted and ready to land.Jul 2 2020, 6:33 PM Closed by commit rGdfcc68c52826: DomTree: Remove getRoots() accessor (authored by nhaehnle). · Explain WhyJul 6 2020, 12:58 PM This revision was automatically updated to reflect the committed changes. nhaehnle marked an inline comment as done.
Revision Contents
Diff 275807 llvm/include/llvm/Analysis/DominanceFrontier.h
llvm/include/llvm/CodeGen/MachineDominators.h
llvm/include/llvm/CodeGen/MachinePostDominators.h
llvm/include/llvm/Support/GenericDomTree.h
llvm/include/llvm/Support/GenericDomTreeConstruction.h
llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/unittests/IR/DominatorTreeTest.cpp
|
This should really be EXPECT_EQ(2, PDT.root_size())