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/LoopVectorize/dead_instructions.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/LoopVectorize/dead_instructions.ll')
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/dead_instructions.ll | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/dead_instructions.ll b/llvm/test/Transforms/LoopVectorize/dead_instructions.ll deleted file mode 100644 index fb929ee4ebd..00000000000 --- a/llvm/test/Transforms/LoopVectorize/dead_instructions.ll +++ /dev/null @@ -1,42 +0,0 @@ -; RUN: opt < %s -force-vector-width=2 -force-vector-interleave=2 -loop-vectorize -S | FileCheck %s - -target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" - -; CHECK-LABEL: @dead_instructions_01 -; -; This test ensures that we don't generate trivially dead instructions prior to -; instruction simplification. We don't need to generate instructions -; corresponding to the original induction variable update or branch condition, -; since we rewrite the loop structure. -; -; CHECK: vector.body: -; CHECK: %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] -; CHECK: %[[I0:.+]] = add i64 %index, 0 -; CHECK: %[[I2:.+]] = add i64 %index, 2 -; CHECK: getelementptr inbounds i64, i64* %a, i64 %[[I0]] -; CHECK: getelementptr inbounds i64, i64* %a, i64 %[[I2]] -; CHECK-NOT: add nuw nsw i64 %[[I0]], 1 -; CHECK-NOT: add nuw nsw i64 %[[I2]], 1 -; CHECK-NOT: icmp slt i64 {{.*}}, %n -; CHECK: %index.next = add i64 %index, 4 -; CHECK: %[[CMP:.+]] = icmp eq i64 %index.next, %n.vec -; CHECK: br i1 %[[CMP]], label %middle.block, label %vector.body -; -define i64 @dead_instructions_01(i64 *%a, i64 %n) { -entry: - br label %for.body - -for.body: - %i = phi i64 [ %i.next, %for.body ], [ 0, %entry ] - %r = phi i64 [ %tmp2, %for.body ], [ 0, %entry ] - %tmp0 = getelementptr inbounds i64, i64* %a, i64 %i - %tmp1 = load i64, i64* %tmp0, align 8 - %tmp2 = add i64 %tmp1, %r - %i.next = add nuw nsw i64 %i, 1 - %cond = icmp slt i64 %i.next, %n - br i1 %cond, label %for.body, label %for.end - -for.end: - %tmp3 = phi i64 [ %tmp2, %for.body ] - ret i64 %tmp3 -} |