Adds the blocks_to_add_ to both the loop and to the parent.
| 983 | |
| 984 | // Adds the blocks_to_add_ to both the loop and to the parent. |
| 985 | void LoopUnrollerUtilsImpl::AddBlocksToLoop(Loop* loop) const { |
| 986 | // Add the blocks to this loop. |
| 987 | for (auto& block_itr : blocks_to_add_) { |
| 988 | loop->AddBasicBlock(block_itr.get()); |
| 989 | } |
| 990 | |
| 991 | // Add the blocks to the parent as well. |
| 992 | if (loop->GetParent()) AddBlocksToLoop(loop->GetParent()); |
| 993 | } |
| 994 | |
| 995 | void LoopUnrollerUtilsImpl::LinkLastPhisToStart(Loop* loop) const { |
| 996 | std::vector<Instruction*> inductions; |
nothing calls this directly
no test coverage detected