Home
last modified time | relevance | path

Searched refs:liveInst (Results 1 – 2 of 2) sorted by relevance

/external/deqp-deps/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.cpp421 Instruction* liveInst = worklist_.front(); in AggressiveDCE() local
423 liveInst->ForEachInId([&liveInst, this](const uint32_t* iid) { in AggressiveDCE()
428 if (inInst->opcode() == SpvOpLabel && liveInst->IsBranch()) return; in AggressiveDCE()
431 if (liveInst->type_id() != 0) { in AggressiveDCE()
432 AddToWorklist(get_def_use_mgr()->GetDef(liveInst->type_id())); in AggressiveDCE()
436 BasicBlock* blk = context()->get_instr_block(liveInst); in AggressiveDCE()
452 if (liveInst->opcode() == SpvOpLoad || liveInst->IsAtomicWithLoad()) { in AggressiveDCE()
454 (void)GetPtr(liveInst, &varId); in AggressiveDCE()
459 } else if (liveInst->opcode() == SpvOpCopyMemory || in AggressiveDCE()
460 liveInst->opcode() == SpvOpCopyMemorySized) { in AggressiveDCE()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.cpp421 Instruction* liveInst = worklist_.front(); in AggressiveDCE() local
423 liveInst->ForEachInId([&liveInst, this](const uint32_t* iid) { in AggressiveDCE()
428 if (inInst->opcode() == SpvOpLabel && liveInst->IsBranch()) return; in AggressiveDCE()
431 if (liveInst->type_id() != 0) { in AggressiveDCE()
432 AddToWorklist(get_def_use_mgr()->GetDef(liveInst->type_id())); in AggressiveDCE()
436 BasicBlock* blk = context()->get_instr_block(liveInst); in AggressiveDCE()
452 if (liveInst->opcode() == SpvOpLoad || liveInst->IsAtomicWithLoad()) { in AggressiveDCE()
454 (void)GetPtr(liveInst, &varId); in AggressiveDCE()
459 } else if (liveInst->opcode() == SpvOpCopyMemory || in AggressiveDCE()
460 liveInst->opcode() == SpvOpCopyMemorySized) { in AggressiveDCE()
[all …]