peel loops with runtime small trip counts
authorIkhlas Ajbar <iajbar@codeaurora.org>
Tue, 3 Apr 2018 03:39:43 +0000 (03:39 +0000)
committerIkhlas Ajbar <iajbar@codeaurora.org>
Tue, 3 Apr 2018 03:39:43 +0000 (03:39 +0000)
commitb7322e8ac7a99b059dc7c3930436cebe72b53b8e
treeabfa9e7c3351221fbd99c7ebd8076a03e7fe870c
parent35a75cae92a0ed65966fa934fc087a7eb1f9ca26
peel loops with runtime small trip counts

For Hexagon, peeling loops with small runtime trip count is beneficial for our
benchmarks. We set PeelCount in HexagonTargetInfo.cpp and we use PeelCount set
by the target for computing the desired peel count.

Differential Revision: https://reviews.llvm.org/D44880

llvm-svn: 329042
llvm/include/llvm/Transforms/Utils/UnrollLoop.h
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
llvm/test/Transforms/LoopUnroll/Hexagon/peel-small-loop.ll [new file with mode: 0644]