Lines Matching refs:loop_body
41 HBasicBlock* loop_body = new (GetAllocator()) HBasicBlock(graph_); in CreateBasicLoopControlFlow() local
45 graph_->AddBlock(loop_body); in CreateBasicLoopControlFlow()
52 loop_header->AddSuccessor(loop_body); in CreateBasicLoopControlFlow()
53 loop_body->AddSuccessor(loop_header); in CreateBasicLoopControlFlow()
56 *body_p = loop_body; in CreateBasicLoopControlFlow()
59 void CreateBasicLoopDataFlow(HBasicBlock* loop_header, HBasicBlock* loop_body) { in CreateBasicLoopDataFlow() argument
88 loop_body->AddInstruction(null_check); in CreateBasicLoopDataFlow()
89 loop_body->AddInstruction(array_length); in CreateBasicLoopDataFlow()
90 loop_body->AddInstruction(bounds_check); in CreateBasicLoopDataFlow()
91 loop_body->AddInstruction(array_get); in CreateBasicLoopDataFlow()
92 loop_body->AddInstruction(add); in CreateBasicLoopDataFlow()
93 loop_body->AddInstruction(array_set); in CreateBasicLoopDataFlow()
94 loop_body->AddInstruction(induction_inc); in CreateBasicLoopDataFlow()
95 loop_body->AddInstruction(new (GetAllocator()) HGoto()); in CreateBasicLoopDataFlow()
114 HBasicBlock* loop_body = nullptr; in TEST_F() local
117 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
118 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
145 HBasicBlock* loop_body = nullptr; in TEST_F() local
149 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
150 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
226 HBasicBlock* loop_body = nullptr; in TEST_F() local
230 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
231 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
258 EXPECT_TRUE(loop_info->Contains(*loop_body)); in TEST_F()
259 EXPECT_TRUE(loop_info->IsBackEdge(*loop_body)); in TEST_F()
265 HBasicBlock* loop_body = nullptr; in TEST_F() local
269 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
270 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
277 bb_set.SetBit(loop_body->GetBlockId()); in TEST_F()
312 HBasicBlock* loop_body = nullptr; in TEST_F() local
315 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
316 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
334 EXPECT_EQ(loop_body->GetSingleSuccessor(), header); in TEST_F()
335 EXPECT_EQ(bb_map.Get(loop_body)->GetSingleSuccessor(), header); in TEST_F()
341 EXPECT_EQ(new_loop_info->GetBackEdges()[0], loop_body); in TEST_F()
371 HBasicBlock* loop_body = nullptr; in TEST_F() local
374 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
375 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
392 EXPECT_EQ(loop_body->GetSingleSuccessor(), bb_map.Get(header)); in TEST_F()
393 EXPECT_EQ(bb_map.Get(loop_body)->GetSingleSuccessor(), header); in TEST_F()
400 EXPECT_EQ(loop_info->GetBackEdges()[0], bb_map.Get(loop_body)); in TEST_F()
407 HBasicBlock* loop_body = nullptr; in TEST_F() local
410 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
411 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
462 HBasicBlock* loop_body = nullptr; in TEST_F() local
469 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
470 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
473 CreateBasicLoopControlFlow(header, return_block_, &header, &loop_body); in TEST_F()
474 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
477 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
478 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
509 HBasicBlock* loop_body = nullptr; in TEST_F() local
516 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
517 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
520 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
521 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
524 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
525 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
528 CreateBasicLoopControlFlow(loop1_header, return_block_, &header, &loop_body); in TEST_F()
529 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
566 HBasicBlock* loop_body = nullptr; in TEST_F() local
573 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
574 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
576 HBasicBlock* loop_body1 = loop_body; in TEST_F()
578 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
579 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
581 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
582 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
584 HBasicBlock* loop_body3 = loop_body; in TEST_F()
620 HBasicBlock* loop_body = nullptr; in TEST_F() local
624 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
625 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
676 HBasicBlock* loop_body = nullptr; in TEST_F() local
683 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
684 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
687 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
688 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
691 CreateBasicLoopControlFlow(header, header->GetSuccessors()[1], &header, &loop_body); in TEST_F()
692 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
695 CreateBasicLoopControlFlow(loop2_header, loop2_header->GetSuccessors()[0], &header, &loop_body); in TEST_F()
696 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
699 CreateBasicLoopControlFlow(loop1_header, return_block_, &header, &loop_body); in TEST_F()
700 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()