summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
committerEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
commita86343512845c9c1fdbac865fea88aa5fce7142a (patch)
tree666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll
parent7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff)
downloadbcm5719-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/LoopStrengthReduce/ephemeral.ll')
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll41
1 files changed, 0 insertions, 41 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll b/llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll
deleted file mode 100644
index a0d1d44b1ba..00000000000
--- a/llvm/test/Transforms/LoopStrengthReduce/ephemeral.ll
+++ /dev/null
@@ -1,41 +0,0 @@
-; RUN: opt < %s -loop-reduce -S | FileCheck %s
-
-target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
-
-; for (int i = 0; i < n; ++i) {
-; use(i * 5 + 3);
-; // i * a + b is ephemeral and shouldn't be promoted by LSR
-; __builtin_assume(i * a + b >= 0);
-; }
-define void @ephemeral(i32 %a, i32 %b, i32 %n) {
-; CHECK-LABEL: @ephemeral(
-entry:
- br label %loop
-
-loop:
- %i = phi i32 [ 0, %entry ], [ %inc, %loop ]
- ; Only i and i * 5 + 3 should be indvars, not i * a + b.
-; CHECK: phi i32
-; CHECK: phi i32
-; CHECK-NOT: phi i32
- %inc = add nsw i32 %i, 1
- %exitcond = icmp eq i32 %inc, %n
-
- %0 = mul nsw i32 %i, 5
- %1 = add nsw i32 %0, 3
- call void @use(i32 %1)
-
- %2 = mul nsw i32 %i, %a
- %3 = add nsw i32 %2, %b
- %4 = icmp sgt i32 %3, -1
- call void @llvm.assume(i1 %4)
-
- br i1 %exitcond, label %exit, label %loop
-
-exit:
- ret void
-}
-
-declare void @use(i32)
-
-declare void @llvm.assume(i1)
OpenPOWER on IntegriCloud