Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: test/unittests/compiler/control-flow-optimizer-unittest.cc

Issue 2139593002: [turbofan] Move TryCloneBranch in the EffectControlLinearizer pass. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | test/unittests/compiler/effect-control-linearizer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698