summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-10-02 16:58:13 +0000
committerFlorian Hahn <flo@fhahn.com>2019-10-02 16:58:13 +0000
commiteb6700b57e969e75014394a02e8130542f3f6457 (patch)
treed40e80e72a5399be6ad70b8c079c677f93f302ad /llvm/unittests
parentef315b5361e414f93b0f0067084fe9f63e620b54 (diff)
downloadbcm5719-llvm-eb6700b57e969e75014394a02e8130542f3f6457.tar.gz
bcm5719-llvm-eb6700b57e969e75014394a02e8130542f3f6457.zip
[Local] Remove unused LazyValueInfo pointer from removeUnreachableBlock.
There are no users that pass in LazyValueInfo, so we can simplify the function a bit. Reviewers: brzycki, asbirlea, davide Reviewed By: davide Differential Revision: https://reviews.llvm.org/D68297 llvm-svn: 373488
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/Transforms/Utils/LocalTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp
index 55f04e98d77..ff2eda1cec0 100644
--- a/llvm/unittests/Transforms/Utils/LocalTest.cpp
+++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp
@@ -872,7 +872,7 @@ TEST(Local, RemoveUnreachableBlocks) {
auto runEager = [&](Function &F, DominatorTree *DT) {
PostDominatorTree PDT = PostDominatorTree(F);
DomTreeUpdater DTU(*DT, PDT, DomTreeUpdater::UpdateStrategy::Eager);
- removeUnreachableBlocks(F, nullptr, &DTU);
+ removeUnreachableBlocks(F, &DTU);
EXPECT_TRUE(DTU.getDomTree().verify());
EXPECT_TRUE(DTU.getPostDomTree().verify());
};
@@ -880,7 +880,7 @@ TEST(Local, RemoveUnreachableBlocks) {
auto runLazy = [&](Function &F, DominatorTree *DT) {
PostDominatorTree PDT = PostDominatorTree(F);
DomTreeUpdater DTU(*DT, PDT, DomTreeUpdater::UpdateStrategy::Lazy);
- removeUnreachableBlocks(F, nullptr, &DTU);
+ removeUnreachableBlocks(F, &DTU);
EXPECT_TRUE(DTU.getDomTree().verify());
EXPECT_TRUE(DTU.getPostDomTree().verify());
};
@@ -909,8 +909,8 @@ TEST(Local, RemoveUnreachableBlocks) {
auto checkRUBlocksRetVal = [&](Function &F, DominatorTree *DT) {
DomTreeUpdater DTU(DT, DomTreeUpdater::UpdateStrategy::Lazy);
- EXPECT_TRUE(removeUnreachableBlocks(F, nullptr, &DTU));
- EXPECT_FALSE(removeUnreachableBlocks(F, nullptr, &DTU));
+ EXPECT_TRUE(removeUnreachableBlocks(F, &DTU));
+ EXPECT_FALSE(removeUnreachableBlocks(F, &DTU));
EXPECT_TRUE(DTU.getDomTree().verify());
};
OpenPOWER on IntegriCloud