forked from OSchip/llvm-project
[Utils] LocalTest: fix SimplifyCFGWithNullAC test to work with `-simplifycfg-require-and-preserve-domtree=1`
This commit is contained in:
parent
db753269d9
commit
5fe0798dee
|
@ -998,8 +998,12 @@ TEST(Local, SimplifyCFGWithNullAC) {
|
|||
}
|
||||
ASSERT_TRUE(TestBB);
|
||||
|
||||
DominatorTree DT(F);
|
||||
DomTreeUpdater DTU(DT, DomTreeUpdater::UpdateStrategy::Eager);
|
||||
|
||||
// %test.bb is expected to be simplified by FoldCondBranchOnPHI.
|
||||
EXPECT_TRUE(simplifyCFG(TestBB, TTI, /*DTU=*/nullptr, Options));
|
||||
EXPECT_TRUE(simplifyCFG(TestBB, TTI,
|
||||
RequireAndPreserveDomTree ? &DTU : nullptr, Options));
|
||||
}
|
||||
|
||||
TEST(Local, CanReplaceOperandWithVariable) {
|
||||
|
|
Loading…
Reference in New Issue