Updates the OpLoopMerge instruction to reflect the current state of the loop.
| 77 | // Updates the OpLoopMerge instruction to reflect the current state of the |
| 78 | // loop. |
| 79 | inline void UpdateLoopMergeInst() { |
| 80 | assert(GetHeaderBlock()->GetLoopMergeInst() && |
| 81 | "The loop is not structured"); |
| 82 | Instruction* merge_inst = GetHeaderBlock()->GetLoopMergeInst(); |
| 83 | merge_inst->SetInOperand(0, {GetMergeBlock()->id()}); |
| 84 | } |
| 85 | |
| 86 | // Returns the continue target basic block. This is the block designated as |
| 87 | // the continue target by the OpLoopMerge instruction. |
no test coverage detected