| Index: test/unittests/compiler/control-flow-optimizer-unittest.cc
|
| diff --git a/test/unittests/compiler/control-flow-optimizer-unittest.cc b/test/unittests/compiler/control-flow-optimizer-unittest.cc
|
| index a5a3c74be239ba441e4d39bdba342880fa4ab9f2..a0c483344e902db31d5e1410295c94adec1cc457 100644
|
| --- a/test/unittests/compiler/control-flow-optimizer-unittest.cc
|
| +++ b/test/unittests/compiler/control-flow-optimizer-unittest.cc
|
| @@ -96,34 +96,6 @@ TEST_F(ControlFlowOptimizerTest, BuildSwitch2) {
|
| IsSwitch(index, IsIfSuccess(index)))))));
|
| }
|
|
|
| -
|
| -TEST_F(ControlFlowOptimizerTest, CloneBranch) {
|
| - Node* cond0 = Parameter(0);
|
| - Node* cond1 = Parameter(1);
|
| - Node* cond2 = Parameter(2);
|
| - Node* branch0 = graph()->NewNode(common()->Branch(), cond0, start());
|
| - Node* control1 = graph()->NewNode(common()->IfTrue(), branch0);
|
| - Node* control2 = graph()->NewNode(common()->IfFalse(), branch0);
|
| - Node* merge0 = graph()->NewNode(common()->Merge(2), control1, control2);
|
| - Node* phi0 = graph()->NewNode(common()->Phi(MachineRepresentation::kBit, 2),
|
| - cond1, cond2, merge0);
|
| - Node* branch = graph()->NewNode(common()->Branch(), phi0, merge0);
|
| - Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
|
| - Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
|
| - Node* merge = graph()->NewNode(common()->Merge(2), if_true, if_false);
|
| - graph()->SetEnd(graph()->NewNode(common()->End(1), merge));
|
| - Optimize();
|
| - Capture<Node*> branch1_capture, branch2_capture;
|
| - EXPECT_THAT(
|
| - end(),
|
| - IsEnd(IsMerge(IsMerge(IsIfTrue(CaptureEq(&branch1_capture)),
|
| - IsIfTrue(CaptureEq(&branch2_capture))),
|
| - IsMerge(IsIfFalse(AllOf(CaptureEq(&branch1_capture),
|
| - IsBranch(cond1, control1))),
|
| - IsIfFalse(AllOf(CaptureEq(&branch2_capture),
|
| - IsBranch(cond2, control2)))))));
|
| -}
|
| -
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|