summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2018-08-14 17:12:30 +0000
committerAlina Sbirlea <asbirlea@google.com>2018-08-14 17:12:30 +0000
commit148c44547567bc2410e8adf3d31e7eefa62f7051 (patch)
treebb2174ce237450878bd9cf098d4cfd2faa6012ed /llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp
parent2c0bc8b7a3b2ac46c4cb166e2c360bbbdda6d698 (diff)
downloadbcm5719-llvm-148c44547567bc2410e8adf3d31e7eefa62f7051.tar.gz
bcm5719-llvm-148c44547567bc2410e8adf3d31e7eefa62f7051.zip
[DomTree] Cleanup Update and LegalizeUpdate API moved to Support header.
Summary: Clean-up following D50479. Make Update and LegalizeUpdate refer to the utilities in Support/CFGUpdate. Reviewers: kuhar Subscribers: sanjoy, jlebar, mgrang, llvm-commits Differential Revision: https://reviews.llvm.org/D50669 llvm-svn: 339694
Diffstat (limited to 'llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp')
-rw-r--r--llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp b/llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp
index 85308685e5d..6775fc1ab5c 100644
--- a/llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp
+++ b/llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp
@@ -58,9 +58,9 @@ TEST(DominatorTreeBatchUpdates, LegalizeDomUpdates) {
{Insert, B, C}, {Insert, C, D}, {Delete, B, C}, {Insert, B, C},
{Insert, B, D}, {Delete, C, D}, {Delete, A, B}};
SmallVector<DomUpdate, 4> Legalized;
- DomSNCA::LegalizeUpdates(Updates, Legalized);
+ cfg::LegalizeUpdates<BasicBlock *>(Updates, Legalized, false);
LLVM_DEBUG(dbgs() << "Legalized updates:\t");
- LLVM_DEBUG(for (auto &U : Legalized) dbgs() << U << ", ");
+ LLVM_DEBUG(for (auto &U : Legalized) { U.dump(); dbgs() << ", "; });
LLVM_DEBUG(dbgs() << "\n");
EXPECT_EQ(Legalized.size(), 3UL);
EXPECT_NE(llvm::find(Legalized, DomUpdate{Insert, B, C}), Legalized.end());
@@ -81,9 +81,9 @@ TEST(DominatorTreeBatchUpdates, LegalizePostDomUpdates) {
{Insert, B, C}, {Insert, C, D}, {Delete, B, C}, {Insert, B, C},
{Insert, B, D}, {Delete, C, D}, {Delete, A, B}};
SmallVector<DomUpdate, 4> Legalized;
- PostDomSNCA::LegalizeUpdates(Updates, Legalized);
+ cfg::LegalizeUpdates<BasicBlock *>(Updates, Legalized, true);
LLVM_DEBUG(dbgs() << "Legalized postdom updates:\t");
- LLVM_DEBUG(for (auto &U : Legalized) dbgs() << U << ", ");
+ LLVM_DEBUG(for (auto &U : Legalized) { U.dump(); dbgs() << ", "; });
LLVM_DEBUG(dbgs() << "\n");
EXPECT_EQ(Legalized.size(), 3UL);
EXPECT_NE(llvm::find(Legalized, DomUpdate{Insert, C, B}), Legalized.end());
OpenPOWER on IntegriCloud