peel loops with runtime small trip counts
authorIkhlas Ajbar <iajbar@codeaurora.org>
Fri, 30 Mar 2018 03:05:34 +0000 (03:05 +0000)
committerIkhlas Ajbar <iajbar@codeaurora.org>
Fri, 30 Mar 2018 03:05:34 +0000 (03:05 +0000)
commit66c8ba5a50ead4fcf4c64c466fbb64cb95d15711
tree83219ebec6bf94be62105ae846dd2484a9607148
parent0934c1998285317313a3d44ab5457be8badcff3f
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: 328854
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
llvm/test/Transforms/LoopUnroll/Hexagon/peel-small-loop.ll [new file with mode: 0644]