HomePhabricator

[LoopUnroll] Don't peel loops where the latch isn't the exiting block

Authored by mkuper on Mar 16 2017, 2:07 PM.

Description

[LoopUnroll] Don't peel loops where the latch isn't the exiting block

Peeling assumed this doesn't happen, but didn't check it.
This fixes PR32178.

Differential Revision: https://reviews.llvm.org/D30757

llvm-svn: 297993