summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEvgeny Stupachenko <evstupac@gmail.com>2016-05-27 23:15:06 +0000
committerEvgeny Stupachenko <evstupac@gmail.com>2016-05-27 23:15:06 +0000
commitea2aef4a1d4beded20033fa4fc223936c7ffe5d8 (patch)
tree558661a7ed910e27aeeeeb04d14caa5e0b7cb365 /llvm/test
parent72a819e155f8eedace2f6fd57c4bf99011ab51f2 (diff)
downloadbcm5719-llvm-ea2aef4a1d4beded20033fa4fc223936c7ffe5d8.tar.gz
bcm5719-llvm-ea2aef4a1d4beded20033fa4fc223936c7ffe5d8.zip
The patch refactors unroll pass.
Summary: Unroll factor (Count) calculations moved to a new function. Early exits on pragma and "-unroll-count" defined factor added. New type of unrolling "Force" introduced (previously used implicitly). New unroll preference "AllowRemainder" introduced and set "true" by default. (should be set to false for architectures that suffers from it). Reviewers: hfinkel, mzolotukhin, zzheng Differential Revision: http://reviews.llvm.org/D19553 From: Evgeny Stupachenko <evstupac@gmail.com> llvm-svn: 271071
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll b/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll
index 5646aeaa7b9..a68a9ef2730 100644
--- a/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll
+++ b/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -unroll-threshold=20 -loop-unroll -unroll-allow-partial -unroll-runtime -unroll-dynamic-cost-savings-discount=0 | FileCheck %s
+; RUN: opt < %s -S -unroll-threshold=20 -loop-unroll -unroll-allow-partial -unroll-runtime -unroll-allow-remainder -unroll-dynamic-cost-savings-discount=0 | FileCheck %s
; The Loop TripCount is 9. However unroll factors 3 or 9 exceed given threshold.
; The test checks that we choose a smaller, power-of-two, unroll count and do not give up on unrolling.
OpenPOWER on IntegriCloud