Duplicate the |loop| body |factor| number of times while keeping the loop backedge intact.
| 1014 | // Duplicate the |loop| body |factor| number of times while keeping the loop |
| 1015 | // backedge intact. |
| 1016 | bool LoopUnrollerUtilsImpl::PartiallyUnroll(Loop* loop, size_t factor) { |
| 1017 | if (!Unroll(loop, factor)) return false; |
| 1018 | LinkLastPhisToStart(loop); |
| 1019 | AddBlocksToLoop(loop); |
| 1020 | AddBlocksToFunction(loop->GetMergeBlock()); |
| 1021 | RemoveDeadInstructions(); |
| 1022 | return true; |
| 1023 | } |
| 1024 | |
| 1025 | /* |
| 1026 | * End LoopUtilsImpl. |
no test coverage detected