Home
last modified time | relevance | path

Searched refs:parent_loop (Results 1 – 15 of 15) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_dce.c149 struct loop_state *parent_loop) in dce_cf_list() argument
156 progress |= dce_block(block, defs_live, parent_loop); in dce_cf_list()
161 progress |= dce_cf_list(&nif->else_list, defs_live, parent_loop); in dce_cf_list()
162 progress |= dce_cf_list(&nif->then_list, defs_live, parent_loop); in dce_cf_list()
179 progress |= dce_cf_list(&loop->body, defs_live, parent_loop); in dce_cf_list()
197 if (!parent_loop->preheader) { in dce_cf_list()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Dnested_loops.cpp168 Loop& parent_loop = *ld[21]; in TEST_F() local
169 EXPECT_TRUE(parent_loop.HasNestedLoops()); in TEST_F()
170 EXPECT_FALSE(parent_loop.IsNested()); in TEST_F()
171 EXPECT_EQ(parent_loop.GetDepth(), 1u); in TEST_F()
172 EXPECT_EQ(std::distance(parent_loop.begin(), parent_loop.end()), 2u); in TEST_F()
173 EXPECT_EQ(parent_loop.GetHeaderBlock(), spvtest::GetBasicBlock(f, 21)); in TEST_F()
174 EXPECT_EQ(parent_loop.GetLatchBlock(), spvtest::GetBasicBlock(f, 23)); in TEST_F()
175 EXPECT_EQ(parent_loop.GetMergeBlock(), spvtest::GetBasicBlock(f, 22)); in TEST_F()
/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/
Dnested_loops.cpp168 Loop& parent_loop = *ld[21]; in TEST_F() local
169 EXPECT_TRUE(parent_loop.HasNestedLoops()); in TEST_F()
170 EXPECT_FALSE(parent_loop.IsNested()); in TEST_F()
171 EXPECT_EQ(parent_loop.GetDepth(), 1u); in TEST_F()
172 EXPECT_EQ(std::distance(parent_loop.begin(), parent_loop.end()), 2u); in TEST_F()
173 EXPECT_EQ(parent_loop.GetHeaderBlock(), spvtest::GetBasicBlock(f, 21)); in TEST_F()
174 EXPECT_EQ(parent_loop.GetLatchBlock(), spvtest::GetBasicBlock(f, 23)); in TEST_F()
175 EXPECT_EQ(parent_loop.GetMergeBlock(), spvtest::GetBasicBlock(f, 22)); in TEST_F()
/third_party/spirv-tools/test/opt/loop_optimizations/
Dnested_loops.cpp168 Loop& parent_loop = *ld[21]; in TEST_F() local
169 EXPECT_TRUE(parent_loop.HasNestedLoops()); in TEST_F()
170 EXPECT_FALSE(parent_loop.IsNested()); in TEST_F()
171 EXPECT_EQ(parent_loop.GetDepth(), 1u); in TEST_F()
172 EXPECT_EQ(std::distance(parent_loop.begin(), parent_loop.end()), 2u); in TEST_F()
173 EXPECT_EQ(parent_loop.GetHeaderBlock(), spvtest::GetBasicBlock(f, 21)); in TEST_F()
174 EXPECT_EQ(parent_loop.GetLatchBlock(), spvtest::GetBasicBlock(f, 23)); in TEST_F()
175 EXPECT_EQ(parent_loop.GetMergeBlock(), spvtest::GetBasicBlock(f, 22)); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dloop_fission.cpp279 Loop* parent_loop = loop_; in CanPerformSplit() local
280 while (parent_loop) { in CanPerformSplit()
281 loops.push_back(parent_loop); in CanPerformSplit()
282 parent_loop = parent_loop->GetParent(); in CanPerformSplit()
Dcfg.cpp326 Loop* parent_loop = loop->GetParent(); in SplitLoopHeader() local
327 if (parent_loop != nullptr) { in SplitLoopHeader()
328 parent_loop->AddBasicBlock(bb->id()); in SplitLoopHeader()
329 loop_desc->SetBasicBlockToLoop(bb->id(), parent_loop); in SplitLoopHeader()
Dloop_utils.cpp422 if (Loop* parent_loop = loop_desc[non_dedicate]) in CreateLoopDedicatedExits() local
423 parent_loop->AddBasicBlock(&exit); in CreateLoopDedicatedExits()
/third_party/spirv-tools/source/opt/
Dloop_fission.cpp279 Loop* parent_loop = loop_; in CanPerformSplit() local
280 while (parent_loop) { in CanPerformSplit()
281 loops.push_back(parent_loop); in CanPerformSplit()
282 parent_loop = parent_loop->GetParent(); in CanPerformSplit()
Dcfg.cpp326 Loop* parent_loop = loop->GetParent(); in SplitLoopHeader() local
327 if (parent_loop != nullptr) { in SplitLoopHeader()
328 parent_loop->AddBasicBlock(bb->id()); in SplitLoopHeader()
329 loop_desc->SetBasicBlockToLoop(bb->id(), parent_loop); in SplitLoopHeader()
Dloop_utils.cpp422 if (Loop* parent_loop = loop_desc[non_dedicate]) in CreateLoopDedicatedExits() local
423 parent_loop->AddBasicBlock(&exit); in CreateLoopDedicatedExits()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dloop_fission.cpp279 Loop* parent_loop = loop_; in CanPerformSplit() local
280 while (parent_loop) { in CanPerformSplit()
281 loops.push_back(parent_loop); in CanPerformSplit()
282 parent_loop = parent_loop->GetParent(); in CanPerformSplit()
Dcfg.cpp326 Loop* parent_loop = loop->GetParent(); in SplitLoopHeader() local
327 if (parent_loop != nullptr) { in SplitLoopHeader()
328 parent_loop->AddBasicBlock(bb->id()); in SplitLoopHeader()
329 loop_desc->SetBasicBlockToLoop(bb->id(), parent_loop); in SplitLoopHeader()
Dloop_utils.cpp422 if (Loop* parent_loop = loop_desc[non_dedicate]) in CreateLoopDedicatedExits() local
423 parent_loop->AddBasicBlock(&exit); in CreateLoopDedicatedExits()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.h66 } parent_loop; member
Daco_instruction_selection.cpp5674 ctx->cf_info.parent_if.is_divergent || ctx->cf_info.parent_loop.has_divergent_continue; in visit_discard()
5681 Block* linear_target = ctx->cf_info.parent_loop.exit; in visit_discard()
9971 lc->header_idx_old = std::exchange(ctx->cf_info.parent_loop.header_idx, loop_header->index); in begin_loop()
9972 lc->exit_old = std::exchange(ctx->cf_info.parent_loop.exit, &lc->loop_exit); in begin_loop()
9973 lc->divergent_cont_old = std::exchange(ctx->cf_info.parent_loop.has_divergent_continue, false); in begin_loop()
9974 lc->divergent_branch_old = std::exchange(ctx->cf_info.parent_loop.has_divergent_branch, false); in begin_loop()
9984 unsigned loop_header_idx = ctx->cf_info.parent_loop.header_idx; in end_loop()
10012 if (!ctx->cf_info.parent_loop.has_divergent_branch) in end_loop()
10017 if (!ctx->cf_info.parent_loop.has_divergent_branch) in end_loop()
10056 ctx->cf_info.parent_loop.header_idx = lc->header_idx_old; in end_loop()
[all …]