Lines Matching refs:if_block
38 HBasicBlock* if_block = new (GetAllocator()) HBasicBlock(graph); in CreateIfBlock() local
39 graph->AddBlock(if_block); in CreateIfBlock()
42 if_block->AddInstruction(equal); in CreateIfBlock()
44 if_block->AddInstruction(instr); in CreateIfBlock()
45 return if_block; in CreateIfBlock()
84 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
89 entry_block->AddSuccessor(if_block); in TEST_F()
90 if_block->AddSuccessor(if_true); in TEST_F()
92 if_block->AddSuccessor(return_block); in TEST_F()
95 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true); in TEST_F()
96 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
101 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true); in TEST_F()
104 HBasicBlock* false_block = if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(); in TEST_F()
116 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
121 entry_block->AddSuccessor(if_block); in TEST_F()
122 if_block->AddSuccessor(return_block); in TEST_F()
124 if_block->AddSuccessor(if_false); in TEST_F()
127 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
128 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false); in TEST_F()
133 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false); in TEST_F()
136 HBasicBlock* true_block = if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(); in TEST_F()
148 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
152 entry_block->AddSuccessor(if_block); in TEST_F()
153 if_block->AddSuccessor(if_block); in TEST_F()
154 if_block->AddSuccessor(return_block); in TEST_F()
157 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_block); in TEST_F()
158 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
163 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
166 ASSERT_EQ(if_block->GetPredecessors().size(), 2u); in TEST_F()
167 ASSERT_EQ(if_block->GetPredecessors()[0], entry_block->GetSingleSuccessor()); in TEST_F()
168 ASSERT_NE(if_block->GetPredecessors()[1], if_block); in TEST_F()
171 ASSERT_EQ(if_block->GetPredecessors()[1], in TEST_F()
172 if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor()); in TEST_F()
180 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
184 entry_block->AddSuccessor(if_block); in TEST_F()
185 if_block->AddSuccessor(return_block); in TEST_F()
186 if_block->AddSuccessor(if_block); in TEST_F()
189 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
190 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_block); in TEST_F()
195 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
198 ASSERT_EQ(if_block->GetPredecessors().size(), 2u); in TEST_F()
199 ASSERT_EQ(if_block->GetPredecessors()[0], entry_block->GetSingleSuccessor()); in TEST_F()
200 ASSERT_NE(if_block->GetPredecessors()[1], if_block); in TEST_F()
203 ASSERT_EQ(if_block->GetPredecessors()[1], in TEST_F()
204 if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor()); in TEST_F()
213 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
218 first_if_block->AddSuccessor(if_block); in TEST_F()
221 if_block->AddSuccessor(loop_block); in TEST_F()
222 if_block->AddSuccessor(return_block); in TEST_F()
225 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), loop_block); in TEST_F()
226 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
230 HIf* if_instr = if_block->GetLastInstruction()->AsIf(); in TEST_F()
249 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
254 first_if_block->AddSuccessor(if_block); in TEST_F()
257 if_block->AddSuccessor(return_block); in TEST_F()
258 if_block->AddSuccessor(loop_block); in TEST_F()
260 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
261 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), loop_block); in TEST_F()
265 HIf* if_instr = if_block->GetLastInstruction()->AsIf(); in TEST_F()