| 117 | } |
| 118 | |
| 119 | uint32_t StructuredCFGAnalysis::MergeBlock(uint32_t bb_id) { |
| 120 | uint32_t header_id = ContainingConstruct(bb_id); |
| 121 | if (header_id == 0) { |
| 122 | return 0; |
| 123 | } |
| 124 | |
| 125 | BasicBlock* header = context_->cfg()->block(header_id); |
| 126 | Instruction* merge_inst = header->GetMergeInst(); |
| 127 | return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); |
| 128 | } |
| 129 | |
| 130 | uint32_t StructuredCFGAnalysis::NestingDepth(uint32_t bb_id) { |
| 131 | uint32_t result = 0; |