DomTree: Remove getRoots() accessor
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 18 May 2020 14:28:28 +0000 (16:28 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 6 Jul 2020 19:58:11 +0000 (21:58 +0200)
commitdfcc68c528269a3e0b1cbe7ef22cc92cdfdf7eba
tree15eb03545a01e98e65badc79a9e4224c056a635e
parent723a44c9b5d654ec791720fc450757ae00f9e631
DomTree: Remove getRoots() accessor

Summary:
Avoid exposing details about how roots are stored. This enables subsequent
type-erasure changes.

v5:
- cleanup a unit test by using EXPECT_EQ instead of EXPECT_TRUE

Change-Id: I532b774cc71f2224e543bc7d79131d97f63f093d

Reviewers: arsenm, RKSimon, mehdi_amini, courbet

Subscribers: jvesely, wdng, hiraditya, kuhar, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83085
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