| 258 | } |
| 259 | |
| 260 | bool Loop::IsInsideLoop(Instruction* inst) const { |
| 261 | const BasicBlock* parent_block = context_->get_instr_block(inst); |
| 262 | if (!parent_block) return false; |
| 263 | return IsInsideLoop(parent_block); |
| 264 | } |
| 265 | |
| 266 | bool Loop::IsBasicBlockInLoopSlow(const BasicBlock* bb) { |
| 267 | assert(bb->GetParent() && "The basic block does not belong to a function"); |
no test coverage detected