[LoopPeeling] Add flag to disable support for peeling loops with non-latch exits
authorAlina Sbirlea <asbirlea@google.com>
Mon, 24 Oct 2022 22:23:16 +0000 (15:23 -0700)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 25 Oct 2022 19:19:14 +0000 (12:19 -0700)
commitd1b19da854fde9077a53400fabff486dc6dba022
tree4b6f8c309f138530f331a7bc1a308684d1150a38
parent4981a186b3aa5fbe207dce4902d4dce504974f3f
[LoopPeeling] Add flag to disable support for peeling loops with non-latch exits

Add a flag to allow disabling the changes in
https://reviews.llvm.org/D134803.

Differential Revision: https://reviews.llvm.org/D136643
llvm/lib/Transforms/Utils/LoopPeel.cpp
llvm/test/Transforms/LoopUnroll/peel-branch-weights.ll