| 152 | } |
| 153 | |
| 154 | uint32_t StructuredCFGAnalysis::LoopContinueBlock(uint32_t bb_id) { |
| 155 | uint32_t header_id = ContainingLoop(bb_id); |
| 156 | if (header_id == 0) { |
| 157 | return 0; |
| 158 | } |
| 159 | |
| 160 | BasicBlock* header = context_->cfg()->block(header_id); |
| 161 | Instruction* merge_inst = header->GetMergeInst(); |
| 162 | return merge_inst->GetSingleWordInOperand(kContinueNodeIndex); |
| 163 | } |
| 164 | |
| 165 | uint32_t StructuredCFGAnalysis::LoopNestingDepth(uint32_t bb_id) { |
| 166 | uint32_t result = 0; |
no test coverage detected