| 507 | } |
| 508 | |
| 509 | Loop* LoopUtils::CloneLoop(LoopCloningResult* cloning_result) const { |
| 510 | // Compute the structured order of the loop basic blocks and store it in the |
| 511 | // vector ordered_loop_blocks. |
| 512 | std::vector<BasicBlock*> ordered_loop_blocks; |
| 513 | loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); |
| 514 | |
| 515 | // Clone the loop. |
| 516 | return CloneLoop(cloning_result, ordered_loop_blocks); |
| 517 | } |
| 518 | |
| 519 | Loop* LoopUtils::CloneAndAttachLoopToHeader(LoopCloningResult* cloning_result) { |
| 520 | // Clone the loop. |
no test coverage detected