Lines Matching refs:loop
28 Node* loop; member
74 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; in PeelOne() local
75 EXPECT_TRUE(LoopPeeler::CanPeel(loop_tree, loop)); in PeelOne()
76 return Peel(loop_tree, loop); in PeelOne()
79 PeeledIteration* Peel(LoopTree* loop_tree, LoopTree::Loop* loop) { in Peel() argument
80 EXPECT_TRUE(LoopPeeler::CanPeel(loop_tree, loop)); in Peel()
82 LoopPeeler::Peel(graph(), common(), loop_tree, loop, zone()); in Peel()
108 Node* loop = graph()->NewNode(common()->Loop(2), control, control); in NewWhile() local
109 Node* branch = graph()->NewNode(common()->Branch(), cond, loop); in NewWhile()
112 loop->ReplaceInput(1, if_true); in NewWhile()
113 return {loop, branch, if_true, exit}; in NewWhile()
116 void Chain(While* a, Node* control) { a->loop->ReplaceInput(0, control); } in Chain()
118 b->loop->ReplaceInput(1, a->exit); in Nest()
119 a->loop->ReplaceInput(0, b->if_true); in Nest()
123 b, w->loop); in NewPhi()
138 common()->Phi(MachineRepresentation::kTagged, 2), base, base, w->loop); in NewCounter()
161 EXPECT_THAT(w.loop, IsLoop(if_true1, w.if_true)); in TEST_F()
181 EXPECT_THAT(w.loop, IsLoop(if_true1, w.if_true)); in TEST_F()
216 EXPECT_THAT(bri, IsBranch(p0, ExpectPeeled(inner.loop, peeled))); in TEST_F()
220 EXPECT_THAT(outer.loop, IsLoop(if_falsei, inner.exit)); in TEST_F()
242 LoopTree::Loop* loop = loop_tree->ContainingLoop(inner.loop); in TEST_F() local
243 EXPECT_NE(nullptr, loop); in TEST_F()
244 EXPECT_EQ(1u, loop->depth()); in TEST_F()
246 PeeledIteration* peeled = Peel(loop_tree, loop); in TEST_F()
248 ExpectNotPeeled(outer.loop, peeled); in TEST_F()
257 EXPECT_THAT(bri, IsBranch(p0, ExpectPeeled(inner.loop, peeled))); in TEST_F()
261 EXPECT_THAT(outer.loop, IsLoop(start(), IsMerge(inner.exit, if_falsei))); in TEST_F()
279 LoopTree::Loop* loop = loop_tree->ContainingLoop(inner.loop); in TEST_F() local
280 EXPECT_NE(nullptr, loop); in TEST_F()
281 EXPECT_EQ(1u, loop->depth()); in TEST_F()
283 PeeledIteration* peeled = Peel(loop_tree, loop); in TEST_F()
285 ExpectNotPeeled(outer.loop, peeled); in TEST_F()
294 EXPECT_THAT(bri, IsBranch(p0, ExpectPeeled(inner.loop, peeled))); in TEST_F()
298 EXPECT_THAT(outer.loop, IsLoop(start(), IsMerge(inner.exit, if_falsei))); in TEST_F()
306 back, outer.loop)); in TEST_F()
314 Node* loop = graph()->NewNode(common()->Loop(3), start(), start(), start()); in TEST_F() local
315 Branch b1 = NewBranch(p0, loop); in TEST_F()
318 loop->ReplaceInput(1, b2.if_true); in TEST_F()
319 loop->ReplaceInput(2, b2.if_false); in TEST_F()
341 EXPECT_THAT(loop, IsLoop(IsMerge(b2t, b2f), b2.if_true, b2.if_false)); in TEST_F()
348 Node* loop = graph()->NewNode(common()->Loop(3), start(), start(), start()); in TEST_F() local
349 Branch b1 = NewBranch(p0, loop); in TEST_F()
353 Int32Constant(2), loop); in TEST_F()
355 loop->ReplaceInput(1, b2.if_true); in TEST_F()
356 loop->ReplaceInput(2, b2.if_false); in TEST_F()
378 EXPECT_THAT(loop, IsLoop(IsMerge(b2t, b2f), b2.if_true, b2.if_false)); in TEST_F()
384 IsInt32Constant(1), IsInt32Constant(2), loop)); in TEST_F()
396 Node* loop = graph()->NewNode(common()->Loop(3), start(), start(), start()); in TEST_F() local
397 Branch b1 = NewBranch(p0, loop); in TEST_F()
401 Int32Constant(2), loop); in TEST_F()
408 loop->ReplaceInput(1, b2.if_true); in TEST_F()
409 loop->ReplaceInput(2, b2.if_false); in TEST_F()
432 EXPECT_THAT(loop, IsLoop(AllOf(CaptureEq(&entry), IsMerge(b2t, b2f)), in TEST_F()
444 IsInt32Add(phi, IsInt32Constant(2)), loop)); in TEST_F()
456 Node* loop = graph()->NewNode(common()->Loop(2), start(), start()); in TEST_F() local
457 Branch b1 = NewBranch(p0, loop); in TEST_F()
460 loop->ReplaceInput(1, b2.if_true); in TEST_F()
466 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; in TEST_F() local
467 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop)); in TEST_F()
478 Node* loop = graph()->NewNode(common()->Loop(2), start(), start()); in TEST_F() local
479 Branch b1 = NewBranch(p0, loop); in TEST_F()
486 loop->ReplaceInput(1, if_success); in TEST_F()
492 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; in TEST_F() local
493 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop)); in TEST_F()