Index: test/unittests/compiler/branch-elimination-unittest.cc |
diff --git a/test/unittests/compiler/branch-elimination-unittest.cc b/test/unittests/compiler/branch-elimination-unittest.cc |
index 9fcaedc0f82f5153358809f175e8b4f88b9094ff..9486d1fe6ef747a23f0fdbdca8603c6c87e7b402 100644 |
--- a/test/unittests/compiler/branch-elimination-unittest.cc |
+++ b/test/unittests/compiler/branch-elimination-unittest.cc |
@@ -65,9 +65,8 @@ |
graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), |
inner_phi, Int32Constant(3), outer_merge); |
- Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
- Node* ret = graph()->NewNode(common()->Return(), zero, outer_phi, |
- graph()->start(), outer_merge); |
+ Node* ret = graph()->NewNode(common()->Return(), outer_phi, graph()->start(), |
+ outer_merge); |
graph()->SetEnd(graph()->NewNode(common()->End(1), ret)); |
Reduce(); |
@@ -107,9 +106,8 @@ |
graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), |
Int32Constant(1), inner_phi, outer_merge); |
- Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
- Node* ret = graph()->NewNode(common()->Return(), zero, outer_phi, |
- graph()->start(), outer_merge); |
+ Node* ret = graph()->NewNode(common()->Return(), outer_phi, graph()->start(), |
+ outer_merge); |
graph()->SetEnd(graph()->NewNode(common()->End(1), ret)); |
Reduce(); |
@@ -146,9 +144,8 @@ |
Node* add = graph()->NewNode(machine()->Int32Add(), phi1, phi2); |
- Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
Node* ret = |
- graph()->NewNode(common()->Return(), zero, add, graph()->start(), merge2); |
+ graph()->NewNode(common()->Return(), add, graph()->start(), merge2); |
graph()->SetEnd(graph()->NewNode(common()->End(1), ret)); |
Reduce(); |
@@ -179,9 +176,8 @@ |
Node* inner_branch = graph()->NewNode(common()->Branch(), condition, loop); |
Node* inner_if_true = graph()->NewNode(common()->IfTrue(), inner_branch); |
- Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
- Node* ret1 = graph()->NewNode(common()->Return(), zero, Int32Constant(2), |
- effect, inner_if_true); |
+ Node* ret1 = graph()->NewNode(common()->Return(), Int32Constant(2), effect, |
+ inner_if_true); |
Node* inner_if_false = graph()->NewNode(common()->IfFalse(), inner_branch); |
loop->AppendInput(zone(), inner_if_false); |
@@ -195,7 +191,7 @@ |
Node* outer_ephi = graph()->NewNode(common()->EffectPhi(2), effect, |
graph()->start(), outer_merge); |
- Node* ret2 = graph()->NewNode(common()->Return(), zero, Int32Constant(1), |
+ Node* ret2 = graph()->NewNode(common()->Return(), Int32Constant(1), |
outer_ephi, outer_merge); |
Node* terminate = graph()->NewNode(common()->Terminate(), effect, loop); |