summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/DeadStoreElimination
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2015-12-11 18:39:41 +0000
committerChad Rosier <mcrosier@codeaurora.org>2015-12-11 18:39:41 +0000
commitd7634fc91d4bc2415e463d9dc6176f77e21c76b2 (patch)
tree9fd5ee6c011022658c278ac373481ed858b4ce73 /llvm/test/Transforms/DeadStoreElimination
parentabc7c1d1d2d44b4d7416c714a13239872d95a72e (diff)
downloadbcm5719-llvm-d7634fc91d4bc2415e463d9dc6176f77e21c76b2.tar.gz
bcm5719-llvm-d7634fc91d4bc2415e463d9dc6176f77e21c76b2.zip
Revert r255247, r255265, and r255286 due to serious compile-time regressions.
Revert "[DSE] Disable non-local DSE to see if the bots go green." Revert "[DeadStoreElimination] Use range-based loops. NFC." Revert "[DeadStoreElimination] Add support for non-local DSE." llvm-svn: 255354
Diffstat (limited to 'llvm/test/Transforms/DeadStoreElimination')
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/cycle.ll26
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/ifthen.ll22
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll27
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll34
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/loop.ll42
5 files changed, 0 insertions, 151 deletions
diff --git a/llvm/test/Transforms/DeadStoreElimination/cycle.ll b/llvm/test/Transforms/DeadStoreElimination/cycle.ll
deleted file mode 100644
index aa2de415c60..00000000000
--- a/llvm/test/Transforms/DeadStoreElimination/cycle.ll
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: opt < %s -basicaa -dse -S | FileCheck %s
-
-@Table = global [535 x i32] zeroinitializer, align 4
-
-; The store in for.inc block should NOT be removed by non-local DSE.
-; CHECK: store i32 64, i32* %arrayidx
-;
-define void @foo() {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
- %arrayidx = getelementptr inbounds [535 x i32], [535 x i32]* @Table, i32 0, i32 %i
- store i32 %i, i32* %arrayidx, align 4
- %cmp1 = icmp slt i32 %i, 64
- br i1 %cmp1, label %for.inc, label %for.end
-
-for.inc:
- store i32 64, i32* %arrayidx, align 4
- %inc = add nsw i32 %i, 1
- br label %for.body
-
-for.end:
- ret void
-}
diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthen.ll b/llvm/test/Transforms/DeadStoreElimination/ifthen.ll
deleted file mode 100644
index 21c87f89256..00000000000
--- a/llvm/test/Transforms/DeadStoreElimination/ifthen.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
-
-; The store and add in if.then block should be removed by non-local DSE.
-; CHECK-NOT: %stval = add
-; CHECK-NOT: store i32 %stval
-;
-define void @foo(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32 %c) {
-entry:
- %cmp = icmp sgt i32 %c, 0
- br i1 %cmp, label %if.then, label %if.end
-
-if.then:
- %0 = load i32, i32* %b, align 4
- %stval = add nsw i32 %0, 1
- store i32 %stval, i32* %a, align 4
- br label %if.end
-
-if.end:
- %m.0 = phi i32 [ 13, %if.then ], [ 10, %entry ]
- store i32 %m.0, i32* %a, align 4
- ret void
-}
diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll b/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll
deleted file mode 100644
index 59ef17e37a5..00000000000
--- a/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll
+++ /dev/null
@@ -1,27 +0,0 @@
-; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
-
-; The add and store in entry block should be removed by non-local DSE.
-; CHECK-NOT: %stval = add
-; CHECK-NOT: store i32 %stval
-;
-define void @foo(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32 %c) {
-entry:
- %0 = load i32, i32* %b, align 4
- %stval = add nsw i32 %0, 1
- store i32 %stval, i32* %a, align 4
- %cmp = icmp sgt i32 %c, 0
- br i1 %cmp, label %if.then, label %if.else
-
-if.then:
- %1 = add nsw i32 %c, 10
- br label %if.end
-
-if.else:
- %2 = add nsw i32 %c, 13
- br label %if.end
-
-if.end:
- %3 = phi i32 [ %1, %if.then ], [ %2, %if.else ]
- store i32 %3, i32* %a, align 4
- ret void
-}
diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll b/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll
deleted file mode 100644
index 7aab0300477..00000000000
--- a/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll
+++ /dev/null
@@ -1,34 +0,0 @@
-; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
-
-; The add and store in entry block should be removed by non-local DSE.
-; CHECK-NOT: %stval = add
-; CHECK-NOT: store i32 %stval
-;
-; The stores in if.then and if.else blocks should be removed by non-local DSE.
-; CHECK-NOT: store i32 %1
-; CHECK-NOT: store i32 %2
-;
-define void @foo(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32 %c) {
-entry:
- %0 = load i32, i32* %b, align 4
- %stval = add nsw i32 %0, 1
- store i32 %stval, i32* %a, align 4
- %cmp = icmp sgt i32 %c, 0
- br i1 %cmp, label %if.then, label %if.else
-
-if.then:
- %1 = add nsw i32 %c, 10
- store i32 %1, i32* %a, align 4
- br label %if.end
-
-if.else:
- %2 = add nsw i32 %c, 13
- store i32 %2, i32* %a, align 4
- br label %if.end
-
-if.end:
- %3 = phi i32 [ %1, %if.then ], [ %2, %if.else ]
- %4 = sub nsw i32 %3, 6
- store i32 %4, i32* %a, align 4
- ret void
-}
diff --git a/llvm/test/Transforms/DeadStoreElimination/loop.ll b/llvm/test/Transforms/DeadStoreElimination/loop.ll
deleted file mode 100644
index 941e6fafaf3..00000000000
--- a/llvm/test/Transforms/DeadStoreElimination/loop.ll
+++ /dev/null
@@ -1,42 +0,0 @@
-; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
-
-; The store in for.body block should be removed by non-local DSE.
-; CHECK-NOT: store i32 0, i32* %arrayidx
-;
-define void @sum(i32 %N, i32* noalias nocapture %C, i32* noalias nocapture readonly %A, i32* noalias nocapture readonly %B) {
-entry:
- %cmp24 = icmp eq i32 %N, 0
- br i1 %cmp24, label %for.end11, label %for.body
-
-for.body:
- %i.025 = phi i32 [ %inc10, %for.cond1.for.inc9_crit_edge ], [ 0, %entry ]
- %arrayidx = getelementptr inbounds i32, i32* %C, i32 %i.025
- store i32 0, i32* %arrayidx, align 4
- %mul = mul i32 %i.025, %N
- %arrayidx4.gep = getelementptr i32, i32* %A, i32 %mul
- br label %for.body3
-
-for.body3:
- %0 = phi i32 [ 0, %for.body ], [ %add8, %for.body3 ]
- %arrayidx4.phi = phi i32* [ %arrayidx4.gep, %for.body ], [ %arrayidx4.inc, %for.body3 ]
- %arrayidx5.phi = phi i32* [ %B, %for.body ], [ %arrayidx5.inc, %for.body3 ]
- %j.023 = phi i32 [ 0, %for.body ], [ %inc, %for.body3 ]
- %1 = load i32, i32* %arrayidx4.phi, align 4
- %2 = load i32, i32* %arrayidx5.phi, align 4
- %add6 = add nsw i32 %2, %1
- %add8 = add nsw i32 %add6, %0
- %inc = add i32 %j.023, 1
- %exitcond = icmp ne i32 %inc, %N
- %arrayidx4.inc = getelementptr i32, i32* %arrayidx4.phi, i32 1
- %arrayidx5.inc = getelementptr i32, i32* %arrayidx5.phi, i32 1
- br i1 %exitcond, label %for.body3, label %for.cond1.for.inc9_crit_edge
-
-for.cond1.for.inc9_crit_edge:
- store i32 %add8, i32* %arrayidx, align 4
- %inc10 = add i32 %i.025, 1
- %exitcond26 = icmp ne i32 %inc10, %N
- br i1 %exitcond26, label %for.body, label %for.end11
-
-for.end11:
- ret void
-}
OpenPOWER on IntegriCloud