[PATCH] D30757: [LoopUnroll] Handle loops where the exiting block is different from the latch
Michael Kuperstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 8 14:23:38 PST 2017
mkuper created this revision.
The previous version assumed it can't happen under the conditions in which this is entered (single exit block, single exiting block, latch has conditional branch).
In the presence of irreducible control flow, that assumption is incorrect - so this needs to be handled after all.
This fixes PR32178.
https://reviews.llvm.org/D30757
Files:
lib/Transforms/Utils/LoopUnrollPeel.cpp
test/Transforms/LoopUnroll/peel-loop-irreducible.ll
test/Transforms/LoopUnroll/peel-loop-not-forced.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30757.91070.patch
Type: text/x-patch
Size: 5069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170308/e75c9eae/attachment.bin>
More information about the llvm-commits
mailing list