diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-06-03 00:16:46 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-06-03 00:16:46 +0000 |
commit | 585649895f4ae60465e627e53c389ef3bb0ddb9f (patch) | |
tree | 9935cf55f34fc5e1802744a9700dad544b5e403f /llvm/lib/Transforms | |
parent | 8d2763bd024370e118b533d3f9dbacb27d2de95f (diff) | |
download | bcm5719-llvm-585649895f4ae60465e627e53c389ef3bb0ddb9f.tar.gz bcm5719-llvm-585649895f4ae60465e627e53c389ef3bb0ddb9f.zip |
[LoopUnroll] Set correct thresholds for new recently enabled unrolling heuristic.
In r270478, where I enabled the new heuristic I posted testing results,
which I got when explicitly passed the thresholds values via CL options.
However, setting the CL options init-values is not enough to change the
default values of thresholds, so I'm changing them in another place now.
llvm-svn: 271615
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp index 95fd35525e9..ddc1c60d93e 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -114,8 +114,8 @@ static TargetTransformInfo::UnrollingPreferences gatherUnrollingPreferences( // Set up the defaults UP.Threshold = 150; - UP.PercentDynamicCostSavedThreshold = 20; - UP.DynamicCostSavingsDiscount = 2000; + UP.PercentDynamicCostSavedThreshold = 50; + UP.DynamicCostSavingsDiscount = 100; UP.OptSizeThreshold = 0; UP.PartialThreshold = UP.Threshold; UP.PartialOptSizeThreshold = 0; |