| 176 | } |
| 177 | |
| 178 | uint32_t StructuredCFGAnalysis::SwitchMergeBlock(uint32_t bb_id) { |
| 179 | uint32_t header_id = ContainingSwitch(bb_id); |
| 180 | if (header_id == 0) { |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | BasicBlock* header = context_->cfg()->block(header_id); |
| 185 | Instruction* merge_inst = header->GetMergeInst(); |
| 186 | return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); |
| 187 | } |
| 188 | |
| 189 | bool StructuredCFGAnalysis::IsContinueBlock(uint32_t bb_id) { |
| 190 | assert(bb_id != 0); |