summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-08-16 21:02:04 +0000
committerReid Kleckner <rnk@google.com>2016-08-16 21:02:04 +0000
commitb99b709068ab351e6ee7630137b6bac6313f76c8 (patch)
tree39e5ab5c5ba262e13a5a5cd72153aa4dd312e39b /llvm/test
parent39bc97a1ec56e7547cc7065dc451003a6580badd (diff)
downloadbcm5719-llvm-b99b709068ab351e6ee7630137b6bac6313f76c8.tar.gz
bcm5719-llvm-b99b709068ab351e6ee7630137b6bac6313f76c8.zip
Revert "Enhance SCEV to compute the trip count for some loops with unknown stride."
This reverts commit r278731. It caused http://crbug.com/638314 llvm-svn: 278853
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll54
1 files changed, 0 insertions, 54 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll b/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll
deleted file mode 100644
index 37e9b1a9e9e..00000000000
--- a/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll
+++ /dev/null
@@ -1,54 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
-
-; ScalarEvolution should be able to compute trip count of the loop by proving
-; that this is not an infinite loop with side effects.
-
-; CHECK: Determining loop execution counts for: @foo1
-; CHECK: backedge-taken count is ((-1 + %n) /u %s)
-
-target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
-
-; Function Attrs: norecurse nounwind
-define void @foo1(i32* nocapture %A, i32 %n, i32 %s) #0 {
-entry:
- %cmp4 = icmp sgt i32 %n, 0
- br i1 %cmp4, label %for.body, label %for.end
-
-for.body: ; preds = %entry, %for.body
- %i.05 = phi i32 [ %add, %for.body ], [ 0, %entry ]
- %arrayidx = getelementptr inbounds i32, i32* %A, i32 %i.05
- %0 = load i32, i32* %arrayidx, align 4
- %inc = add nsw i32 %0, 1
- store i32 %inc, i32* %arrayidx, align 4
- %add = add nsw i32 %i.05, %s
- %cmp = icmp slt i32 %add, %n
- br i1 %cmp, label %for.body, label %for.end
-
-for.end: ; preds = %for.body, %entry
- ret void
-}
-
-
-; Check that we are able to compute trip count of a loop without an entry guard.
-; CHECK: Determining loop execution counts for: @foo2
-; CHECK: backedge-taken count is ((-1 + (%n smax %s)) /u %s)
-
-; Function Attrs: norecurse nounwind
-define void @foo2(i32* nocapture %A, i32 %n, i32 %s) #0 {
-entry:
- br label %for.body
-
-for.body: ; preds = %entry, %for.body
- %i.05 = phi i32 [ %add, %for.body ], [ 0, %entry ]
- %arrayidx = getelementptr inbounds i32, i32* %A, i32 %i.05
- %0 = load i32, i32* %arrayidx, align 4
- %inc = add nsw i32 %0, 1
- store i32 %inc, i32* %arrayidx, align 4
- %add = add nsw i32 %i.05, %s
- %cmp = icmp slt i32 %add, %n
- br i1 %cmp, label %for.body, label %for.end
-
-for.end: ; preds = %for.body, %entry
- ret void
-}
-
OpenPOWER on IntegriCloud