diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip |
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll b/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll deleted file mode 100644 index 3ccf4329a0a..00000000000 --- a/llvm/test/Transforms/LoopUnroll/partial-unroll-const-bounds.ll +++ /dev/null @@ -1,37 +0,0 @@ -; RUN: opt < %s -S -unroll-partial-threshold=20 -unroll-threshold=20 -loop-unroll -unroll-allow-partial -unroll-runtime -unroll-allow-remainder -unroll-max-percent-threshold-boost=100 | FileCheck %s -; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -unroll-runtime -unroll-allow-remainder -unroll-max-percent-threshold-boost=100 | FileCheck %s -; -; Also check that the simple unroller doesn't allow the partial unrolling. -; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll-full)' -unroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -unroll-runtime -unroll-allow-remainder -unroll-max-percent-threshold-boost=100 | FileCheck %s --check-prefix=CHECK-NO-UNROLL - -; 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. - -; CHECK: for.body: -; CHECK: store -; CHECK: for.body.1: -; CHECK: store - -; CHECK-NO-UNROLL: for.body: -; CHECK-NO-UNROLL: store -; CHECK-NO-UNROLL-NOT: store - -define void @foo(i32* nocapture %a, i32* nocapture readonly %b) nounwind uwtable { -entry: - br label %for.body - -for.body: ; preds = %for.body, %entry - %indvars.iv = phi i64 [ 1, %entry ], [ %indvars.iv.next, %for.body ] - %arrayidx = getelementptr inbounds i32, i32* %b, i64 %indvars.iv - %ld = load i32, i32* %arrayidx, align 4 - %idxprom1 = sext i32 %ld to i64 - %arrayidx2 = getelementptr inbounds i32, i32* %a, i64 %idxprom1 - %st = trunc i64 %indvars.iv to i32 - store i32 %st, i32* %arrayidx2, align 4 - %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 - %exitcond = icmp eq i64 %indvars.iv.next, 20 - br i1 %exitcond, label %for.end, label %for.body - -for.end: ; preds = %for.body - ret void -} |