diff options
author | Haicheng Wu <haicheng@codeaurora.org> | 2016-10-12 21:02:22 +0000 |
---|---|---|
committer | Haicheng Wu <haicheng@codeaurora.org> | 2016-10-12 21:02:22 +0000 |
commit | 45e4ef737d2909d0f4856570d2c90a9a70f4037d (patch) | |
tree | 4b2ab8007a31b0dddcd30b13757303fc294bcfe7 /llvm/test/Transforms/LoopUnroll | |
parent | 726f96e63fa6c40d63b920af4c060cc6c5630e67 (diff) | |
download | bcm5719-llvm-45e4ef737d2909d0f4856570d2c90a9a70f4037d.tar.gz bcm5719-llvm-45e4ef737d2909d0f4856570d2c90a9a70f4037d.zip |
Revert "[LoopUnroll] Use the upper bound of the loop trip count to fullly unroll a loop"
This reverts commit r284044.
llvm-svn: 284051
Diffstat (limited to 'llvm/test/Transforms/LoopUnroll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/AArch64/full-unroll-trip-count-upper-bound.ll | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/AArch64/full-unroll-trip-count-upper-bound.ll b/llvm/test/Transforms/LoopUnroll/AArch64/full-unroll-trip-count-upper-bound.ll deleted file mode 100644 index 5c70a2668db..00000000000 --- a/llvm/test/Transforms/LoopUnroll/AArch64/full-unroll-trip-count-upper-bound.ll +++ /dev/null @@ -1,43 +0,0 @@ -; RUN: opt -loop-unroll -S -mtriple aarch64 -mcpu=cortex-a57 %s | FileCheck %s -check-prefix=UNROLL -; RUN: opt -loop-unroll -unroll-max-upperbound=0 -S -mtriple aarch64 -mcpu=cortex-a57 %s | FileCheck %s -check-prefix=NOUNROLL - -; This IR comes from this C code: -; -; for (int i = 0; i < 4; i++) { -; if (src[i] == 1) { -; *dst = i; -; break; -; } -; } -; -; This test is meant to check that this loop is unrolled into four iterations. - -; UNROLL-LABEL: @test -; UNROLL: load i32, i32* -; UNROLL: load i32, i32* -; UNROLL: load i32, i32* -; UNROLL: load i32, i32* -; UNROLL-NOT: load i32, i32* -; NOUNROLL-LABEL: @test -; NOUNROLL: load i32, i32* -; NOUNROLL-NOT: load i32, i32* - -define void @test(i32* %dst, i32* %src) { -entry: - br label %for.body - -for.body: ; preds = %entry, %for.body - %i = phi i32 [ 0, %entry ], [ %inc, %for.body ] - %0 = sext i32 %i to i64 - %1 = getelementptr inbounds i32, i32* %src, i64 %0 - %2 = load i32, i32* %1 - %inc = add nsw i32 %i, 1 - %cmp1 = icmp slt i32 %inc, 4 - %cmp3 = icmp eq i32 %2, 1 - %or.cond = and i1 %cmp3, %cmp1 - br i1 %or.cond, label %for.body, label %exit - -exit: ; preds = %for.body - store i32 %i, i32* %dst - ret void -} |