HomePhabricator

[Loop Peeling] Add support for peeling of loops with multiple exits

Description

[Loop Peeling] Add support for peeling of loops with multiple exits

This patch modifies the loop peeling transformation so that
it does not expect that there is only one loop exit from latch.

It modifies only transformation. Update of branch weights remains
only for exit from latch.

The motivation is that in follow-up patch I plan to enable loop peeling for
loops with multiple exits but only if other exits then from latch one goes to
block with call to deopt.

For now this patch is NFC.

Reviewers: reames, mkuper, iajbar, fhahn
Reviewed By: reames, fhahn
Subscribers: zzheng, llvm-commits
Differential Revision: https://reviews.llvm.org/D63921

Details

Committed
skatkovJul 8 2019, 11:07 PM
Reviewer
reames
Differential Revision
D63921: [Loop Peeling] Add support for peeling of loops with multiple exits
Parents
rL365440: [zorg] Add a new build script for use with monorepo
Branches
Unknown
Tags
Unknown