[PATCH] D70304: [Loop Peeling] Add possibility to enable peeling on loop nests.
Arkady Shlykov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 07:37:11 PST 2020
ashlykov updated this revision to Diff 240190.
ashlykov added a comment.
Hi @xbolva00!
Could you please take a look on slightly updated changes? The previous version didn't preserve LoopInfo in case of new loops are created during a peeling, that causes a fail on EXPENSIVE_CHECKS builds. It's fixed now by recursively creating corresponding Loop objects by cloneLoop() utility function (moved from LoopUnswitch.cpp to LoopUtils.cpp to reuse).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70304/new/
https://reviews.llvm.org/D70304
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/test/Transforms/LoopUnroll/peel-loop-conditions.ll
llvm/test/Transforms/LoopUnroll/peel-loop-nests.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70304.240190.patch
Type: text/x-patch
Size: 22055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200124/167f885d/attachment.bin>
More information about the llvm-commits
mailing list