/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | loop_analyzer.cpp | 30 for (auto loop : GetGraph()->GetRootLoop()->GetInnerLoops()) { in RunImpl() local 31 FindAndInsertPreHeaders(loop); in RunImpl() 52 …auto loop = GetGraph()->GetAllocator()->New<Loop>(GetGraph()->GetAllocator(), loop_header, loop_co… in CreateNewLoop() local 53 loop->AppendBlock(loop_header); in CreateNewLoop() 54 return loop; in CreateNewLoop() 101 auto loop = header->GetLoop(); in ProcessNewBackEdge() local 102 if (loop == nullptr) { in ProcessNewBackEdge() 103 loop = CreateNewLoop(header); in ProcessNewBackEdge() 106 loop->AppendBackEdge(back_edge); in ProcessNewBackEdge() 108 loop->SetIsIrreducible(true); in ProcessNewBackEdge() [all …]
|
/arkcompiler/runtime_core/compiler/tests/ |
D | loop_analyzer_new_test.cpp | 84 Loop loop(graph->GetAllocator(), bb->GetSuccessor(0), 1); in __anonf25df3b00202() local 86 EXPECT_FALSE(loop.IsInside(&other)); in __anonf25df3b00202() 88 loop.SetOuterLoop(&other); in __anonf25df3b00202() 89 EXPECT_TRUE(loop.IsInside(&other)); in __anonf25df3b00202() 118 Loop loop(graph->GetAllocator(), bb->GetSuccessor(0), 1); in __anonf25df3b00302() local 119 loop.AppendBackEdge(bb->GetSuccessor(1)); in __anonf25df3b00302() 120 loop.GetBackEdges()[0]->AddSucc(bb->GetSuccessor(0)); in __anonf25df3b00302() 121 EXPECT_EQ(loop.GetBackEdges()[0]->GetSuccBlockIndex(loop.GetHeader()), 1); in __anonf25df3b00302() 122 EXPECT_NE(GetLoopOutsideSuccessor(&loop), nullptr); in __anonf25df3b00302() 123 EXPECT_FALSE(loop.IsRoot()); in __anonf25df3b00302() [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/lexicalEnv/forUpdate/ |
D | for-update-continue-break-head-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-break-body-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-break-head-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-break-head-body-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-break-head-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-break-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true 6 check exit loop, len == 6: true
|
D | for-update-continue-return-head-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-return-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-return-head-body-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-head-body-decl-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-head-continue-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-continue-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-continue-return-body-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-body-decl-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-continue-return-head-decl-head-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-head-decl-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-continue-return-head-decl-body-outer-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check enter loop, len == 6: true 5 check enter loop, len == 6: true
|
D | for-update-continue-head-decl-head-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check enter loop, len == 5: true 5 check exit loop, len == 5: true
|
D | for-update-continue-break-return-body-decl-body-outer-1-expected.txt | 1 check enter loop len == 7: true 2 check enter loop len == 7: true 3 check enter loop len == 7: true 4 check enter loop len == 7: true
|
D | for-update-continue-break-return-body-decl-head-body-outer-2-expected.txt | 1 check enter loop len == 7: true 2 check enter loop len == 7: true 3 check enter loop len == 7: true 4 check enter loop len == 7: true
|
D | for-update-break-return-head-decl-body-outer-1-expected.txt | 1 check enter loop, len == 6: true 2 check enter loop, len == 6: true 3 check enter loop, len == 6: true 4 check exit loop, len == 6: true
|
D | for-update-break-body-decl-head-body-outer-expected.txt | 1 check enter loop, len == 5: true 2 check enter loop, len == 5: true 3 check enter loop, len == 5: true 4 check exit loop, len == 5: true
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | graph_cloner.cpp | 92 void GraphCloner::CopyLoop(Loop *loop, Loop *cloned_loop) in CopyLoop() argument 94 if (!loop->IsRoot() && !loop->IsIrreducible() && !loop->IsTryCatchLoop()) { in CopyLoop() 95 ASSERT(GetClone(loop->GetHeader()) == cloned_loop->GetHeader()); in CopyLoop() 96 cloned_loop->SetPreHeader(GetClone(loop->GetPreHeader())); in CopyLoop() 98 for (auto block : loop->GetBlocks()) { in CopyLoop() 105 for (auto back_edge : loop->GetBackEdges()) { in CopyLoop() 108 cloned_loop->SetIsIrreducible(loop->IsIrreducible()); in CopyLoop() 109 cloned_loop->SetIsInfinite(loop->IsInfinite()); in CopyLoop() 112 for (const auto &inner_loop : loop->GetInnerLoops()) { in CopyLoop() 181 BasicBlock *GraphCloner::CreateResolverBlock(Loop *loop, BasicBlock *back_edge) in CreateResolverBlock() argument [all …]
|