Home
last modified time | relevance | path

Searched refs:mergeInst (Results 1 – 9 of 9) sorted by relevance

/external/deqp-deps/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.cpp183 Instruction** mergeInst, in IsStructuredHeader() argument
191 if (mergeInst != nullptr) *mergeInst = mi; in IsStructuredHeader()
217 Instruction* mergeInst; in ComputeBlock2HeaderMaps() local
221 IsStructuredHeader(*bi, &mergeInst, &branchInst, &mergeBlockId); in ComputeBlock2HeaderMaps()
226 if (is_header && mergeInst->opcode() == SpvOpLoopMerge) { in ComputeBlock2HeaderMaps()
228 branch2merge_[branchInst] = mergeInst; in ComputeBlock2HeaderMaps()
234 if (is_header && mergeInst->opcode() == SpvOpSelectionMerge) { in ComputeBlock2HeaderMaps()
236 branch2merge_[branchInst] = mergeInst; in ComputeBlock2HeaderMaps()
252 Instruction* mergeInst) { in AddBreaksAndContinuesToWorklist() argument
253 assert(mergeInst->opcode() == SpvOpSelectionMerge || in AddBreaksAndContinuesToWorklist()
[all …]
Ddead_branch_elim_pass.cpp163 Instruction* mergeInst = block->GetMergeInst(); in MarkLiveBlocks() local
164 if (mergeInst && mergeInst->opcode() == SpvOpSelectionMerge) { in MarkLiveBlocks()
166 live_lab_id, mergeInst->GetSingleWordInOperand(0), in MarkLiveBlocks()
170 context()->KillInst(mergeInst); in MarkLiveBlocks()
172 mergeInst->RemoveFromList(); in MarkLiveBlocks()
173 first_break->InsertBefore(std::unique_ptr<Instruction>(mergeInst)); in MarkLiveBlocks()
174 context()->set_instr_block(mergeInst, in MarkLiveBlocks()
Daggressive_dead_code_elim_pass.h107 bool IsStructuredHeader(BasicBlock* bp, Instruction** mergeInst,
119 void AddBreaksAndContinuesToWorklist(Instruction* mergeInst);
Dmerge_return_pass.cpp100 if (Instruction* mergeInst = block->GetMergeInst()) { in ProcessStructured() local
103 state_.emplace_back(loopMergeInst, mergeInst); in ProcessStructured()
130 if (Instruction* mergeInst = block->GetMergeInst()) { in ProcessStructured() local
133 state_.emplace_back(loopMergeInst, mergeInst); in ProcessStructured()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.cpp183 Instruction** mergeInst, in IsStructuredHeader() argument
191 if (mergeInst != nullptr) *mergeInst = mi; in IsStructuredHeader()
217 Instruction* mergeInst; in ComputeBlock2HeaderMaps() local
221 IsStructuredHeader(*bi, &mergeInst, &branchInst, &mergeBlockId); in ComputeBlock2HeaderMaps()
226 if (is_header && mergeInst->opcode() == SpvOpLoopMerge) { in ComputeBlock2HeaderMaps()
228 branch2merge_[branchInst] = mergeInst; in ComputeBlock2HeaderMaps()
234 if (is_header && mergeInst->opcode() == SpvOpSelectionMerge) { in ComputeBlock2HeaderMaps()
236 branch2merge_[branchInst] = mergeInst; in ComputeBlock2HeaderMaps()
252 Instruction* mergeInst) { in AddBreaksAndContinuesToWorklist() argument
253 assert(mergeInst->opcode() == SpvOpSelectionMerge || in AddBreaksAndContinuesToWorklist()
[all …]
Ddead_branch_elim_pass.cpp163 Instruction* mergeInst = block->GetMergeInst(); in MarkLiveBlocks() local
164 if (mergeInst && mergeInst->opcode() == SpvOpSelectionMerge) { in MarkLiveBlocks()
166 live_lab_id, mergeInst->GetSingleWordInOperand(0), in MarkLiveBlocks()
170 context()->KillInst(mergeInst); in MarkLiveBlocks()
172 mergeInst->RemoveFromList(); in MarkLiveBlocks()
173 first_break->InsertBefore(std::unique_ptr<Instruction>(mergeInst)); in MarkLiveBlocks()
174 context()->set_instr_block(mergeInst, in MarkLiveBlocks()
Daggressive_dead_code_elim_pass.h109 bool IsStructuredHeader(BasicBlock* bp, Instruction** mergeInst,
121 void AddBreaksAndContinuesToWorklist(Instruction* mergeInst);
Dmerge_return_pass.cpp100 if (Instruction* mergeInst = block->GetMergeInst()) { in ProcessStructured() local
103 state_.emplace_back(loopMergeInst, mergeInst); in ProcessStructured()
130 if (Instruction* mergeInst = block->GetMergeInst()) { in ProcessStructured() local
133 state_.emplace_back(loopMergeInst, mergeInst); in ProcessStructured()
/external/deqp-deps/glslang/SPIRV/
DInReadableOrder.cpp78 auto mergeInst = block->getMergeInstruction(); in visit() local
79 if (mergeInst) { in visit()
80 Id mergeId = mergeInst->getIdOperand(0); in visit()
83 if (mergeInst->getOpCode() == spv::OpLoopMerge) { in visit()
84 Id continueId = mergeInst->getIdOperand(1); in visit()