| 872 | } |
| 873 | |
| 874 | uint32_t LoopPeelingPass::LoopPeelingInfo::GetFirstNonLoopInvariantOperand( |
| 875 | Instruction* condition) const { |
| 876 | for (uint32_t i = 0; i < condition->NumInOperands(); i++) { |
| 877 | BasicBlock* bb = |
| 878 | context_->get_instr_block(condition->GetSingleWordInOperand(i)); |
| 879 | if (!bb || !loop_->IsInsideLoop(bb)) { |
| 880 | return condition->GetSingleWordInOperand(i); |
| 881 | } |
| 882 | } |
| 883 | |
| 884 | return 0; |
| 885 | } |
| 886 | |
| 887 | static bool IsHandledCondition(spv::Op opcode) { |
| 888 | switch (opcode) { |
nothing calls this directly
no test coverage detected