Searched refs:new_bb (Results 1 - 2 of 2) sorted by relevance
/arkcompiler/runtime_core/compiler/tests/ |
H A D | basicblock_test.cpp | 343 auto new_bb = BB(2).SplitBlockAfterInstruction(&INS(2), true); in TEST_F() local 345 ASSERT_EQ(BB(2).GetTrueSuccessor(), new_bb); in TEST_F() 346 ASSERT_EQ(new_bb->GetPredsBlocks().size(), 1U); in TEST_F() 347 ASSERT_EQ(new_bb->GetPredsBlocks().front(), &BB(2)); in TEST_F() 348 ASSERT_EQ(new_bb->GetFirstInst(), &INS(3)); in TEST_F() 349 ASSERT_EQ(new_bb->GetFirstInst()->GetNext(), &INS(4)); in TEST_F() 350 ASSERT_EQ(new_bb->GetFirstInst()->GetNext()->GetNext(), &INS(5)); in TEST_F() 351 ASSERT_EQ(BB(3).GetPredsBlocks().front(), new_bb); in TEST_F() 352 ASSERT_EQ(BB(4).GetPredsBlocks().front(), new_bb); in TEST_F() 353 ASSERT_EQ(new_bb in TEST_F() [all...] |
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | basicblock.cpp | 58 auto new_bb = GetGraph()->CreateEmptyBlock((next_inst != nullptr) ? next_inst->GetPc() : INVALID_PC); in SplitBlockAfterInstruction() local 59 new_bb->SetAllFields(this->GetAllFields()); in SplitBlockAfterInstruction() 60 GetLoop()->AppendBlock(new_bb); in SplitBlockAfterInstruction() 63 new_bb->AppendInst(next_inst); in SplitBlockAfterInstruction() 71 succ->ReplacePred(this, new_bb); in SplitBlockAfterInstruction() 77 AddSucc(new_bb); in SplitBlockAfterInstruction() 79 return new_bb; in SplitBlockAfterInstruction()
|
Completed in 2 milliseconds