[LoopUnroll] Support loops with exiting block that is neither header nor
authorWhitney Tsang <whitneyt@ca.ibm.com>
Fri, 29 May 2020 01:11:50 +0000 (01:11 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Fri, 29 May 2020 01:18:38 +0000 (01:18 +0000)
commit1bc73b02d6934c8586ca5740da416b7094c3c471
treee05a4ffb77b02c41b0340d760c8c51061ab1d20e
parentb4668a268ddedea76bd406818fd0313b58e6f750
[LoopUnroll] Support loops with exiting block that is neither header nor
latch.

Summary: Remove the limitation in LoopUnrollPass that exiting block must
be either header or latch.
Reviewer: dmgreen, jdoerfert, Meinersbur, kbarton, bmahjour, etiotto,
fhahn, efriedma
Reviewed By: etiotto, fhahn, efriedma
Subscribers: efriedma, lkail, xbolva00, hiraditya, zzheng, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D80477
llvm/lib/Transforms/Utils/LoopUnroll.cpp
llvm/test/Transforms/LoopUnroll/nonlatchcondbr.ll [new file with mode: 0644]