| 859 | } |
| 860 | |
| 861 | uint32_t LoopPeelingPass::LoopPeelingInfo::GetFirstLoopInvariantOperand( |
| 862 | Instruction* condition) const { |
| 863 | for (uint32_t i = 0; i < condition->NumInOperands(); i++) { |
| 864 | BasicBlock* bb = |
| 865 | context_->get_instr_block(condition->GetSingleWordInOperand(i)); |
| 866 | if (bb && loop_->IsInsideLoop(bb)) { |
| 867 | return condition->GetSingleWordInOperand(i); |
| 868 | } |
| 869 | } |
| 870 | |
| 871 | return 0; |
| 872 | } |
| 873 | |
| 874 | uint32_t LoopPeelingPass::LoopPeelingInfo::GetFirstNonLoopInvariantOperand( |
| 875 | Instruction* condition) const { |
nothing calls this directly
no test coverage detected