Home | History | Annotate | Download | only in optimizing

Lines Matching defs:block

48   HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph);
49 graph->AddBlock(block);
51 block->AddInstruction(got);
52 return block;
56 HBasicBlock* block = CreateGotoBlock(graph);
57 graph->SetEntryBlock(block);
58 return block;
62 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph);
63 graph->AddBlock(block);
65 block->AddInstruction(return_instr);
66 return block;
70 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph);
71 graph->AddBlock(block);
73 block->AddInstruction(exit_instr);
74 return block;
78 // Test that the successors of an if block stay consistent after a SimplifyCFG.
79 // This test sets the false block to be the return block.
99 // Ensure we still have the same if true block.
106 // Ensure the new block branches to the join block.
110 // Test that the successors of an if block stay consistent after a SimplifyCFG.
111 // This test sets the true block to be the return block.
131 // Ensure we still have the same if true block.
138 // Ensure the new block branches to the join block.
142 // Test that the successors of an if block stay consistent after a SimplifyCFG.
143 // This test sets the true block to be the loop header.
161 // Ensure we still have the same if false block.
169 // Ensure the new block is the back edge.
174 // Test that the successors of an if block stay consistent after a SimplifyCFG.
175 // This test sets the false block to be the loop header.
193 // Ensure we still have the same if true block.
201 // Ensure the new block is the back edge.
206 // Test that the successors of an if block stay consistent after a SimplifyCFG.
207 // This test sets the true block to be a loop header with multiple pre headers.
230 // Ensure we still have the same if false block.
236 // Ensure the new block is the successor of the true block.
242 // Test that the successors of an if block stay consistent after a SimplifyCFG.
243 // This test sets the false block to be a loop header with multiple pre headers.
265 // Ensure we still have the same if true block.
271 // Ensure the new block is the successor of the false block.
279 HBasicBlock* block = CreateGotoBlock(graph);
280 HInstruction* got = block->GetLastInstruction();
283 // Test at the beginning of the block.
285 block->InsertInstructionBefore(first_instruction, got);
288 ASSERT_EQ(first_instruction->GetBlock(), block);
289 ASSERT_EQ(block->GetFirstInstruction(), first_instruction);
290 ASSERT_EQ(block->GetLastInstruction(), got);
296 // Test in the middle of the block.
298 block->InsertInstructionBefore(second_instruction, got);
301 ASSERT_EQ(second_instruction->GetBlock(), block);
302 ASSERT_EQ(block->GetFirstInstruction(), first_instruction);
303 ASSERT_EQ(block->GetLastInstruction(), got);