[PATCH] D43876: [LoopUnroll] Peel off iterations if it makes conditions true/false.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 09:41:36 PST 2018
fhahn created this revision.
fhahn added reviewers: mkuper, mkazantsev, efriedma.
If the loop body contains conditions of the form IndVar < #constant, we
can remove the checks by peeling off #constant iterations. This patch
initially starts out with supporting very simple conditions. It can be
made more powerful in follow-up commits.
This improves codegen for PR34364.
https://reviews.llvm.org/D43876
Files:
lib/Transforms/Utils/LoopUnrollPeel.cpp
test/Transforms/LoopUnroll/peel-loop-conditions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43876.136315.patch
Type: text/x-patch
Size: 6095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/8ede06f5/attachment.bin>
More information about the llvm-commits
mailing list