summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorIkhlas Ajbar <iajbar@codeaurora.org>2018-04-03 22:55:09 +0000
committerIkhlas Ajbar <iajbar@codeaurora.org>2018-04-03 22:55:09 +0000
commit1376d934ed242eb5452fc6219621f5a8233b1932 (patch)
tree99992e33f524f711118d89f1158e582d3adc4c17 /llvm/lib/Transforms
parent0c194461b5acf968e1eba0e029382cc2ca6b1383 (diff)
downloadbcm5719-llvm-1376d934ed242eb5452fc6219621f5a8233b1932.tar.gz
bcm5719-llvm-1376d934ed242eb5452fc6219621f5a8233b1932.zip
[Hexagon] peel loops with runtime small trip counts
Move the check canPeel() to Hexagon Target before setting PeelCount. Differential Revision: https://reviews.llvm.org/D44880 llvm-svn: 329129
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
index ad454d77406..a1b25a22a14 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -978,9 +978,6 @@ static LoopUnrollResult tryToUnrollLoop(
if (UP.Threshold == 0 && (!UP.Partial || UP.PartialThreshold == 0))
return LoopUnrollResult::Unmodified;
- if (UP.PeelCount && !canPeel(L))
- UP.PeelCount = 0;
-
SmallPtrSet<const Value *, 32> EphValues;
CodeMetrics::collectEphemeralValues(L, &AC, EphValues);
OpenPOWER on IntegriCloud