HomePhabricator

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

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