summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-12 00:17:10 +0000
committerDan Gohman <gohman@apple.com>2010-04-12 00:17:10 +0000
commitc0f1efaf8d50d235545ab2ce1a525cc3902212af (patch)
tree28cdba7dafaf7ebe0b7358bd9ea761b67fc0b34e /llvm/test/Transforms/IndVarSimplify
parent068b793614f71fe36ab95cb8d94d5413a93a1828 (diff)
downloadbcm5719-llvm-c0f1efaf8d50d235545ab2ce1a525cc3902212af.tar.gz
bcm5719-llvm-c0f1efaf8d50d235545ab2ce1a525cc3902212af.zip
Revert 101000, which is breaking self-host builds.
llvm-svn: 101002
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll40
1 files changed, 0 insertions, 40 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll b/llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll
deleted file mode 100644
index d15697497ff..00000000000
--- a/llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll
+++ /dev/null
@@ -1,40 +0,0 @@
-; RUN: opt -indvars -S < %s | FileCheck %s
-
-; Indvars should be able to simplify simple comparisons involving
-; induction variables.
-
-; CHECK: %cond = and i1 %tobool.not, true
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
-
-@X = external global [0 x double]
-
-define void @foo(i64 %n, i32* nocapture %p) nounwind {
-entry:
- %cmp9 = icmp sgt i64 %n, 0
- br i1 %cmp9, label %pre, label %return
-
-pre:
- %t3 = load i32* %p
- %tobool.not = icmp ne i32 %t3, 0
- br label %loop
-
-loop:
- %i = phi i64 [ 0, %pre ], [ %inc, %for.inc ]
- %cmp6 = icmp slt i64 %i, %n
- %cond = and i1 %tobool.not, %cmp6
- br i1 %cond, label %if.then, label %for.inc
-
-if.then:
- %arrayidx = getelementptr [0 x double]* @X, i64 0, i64 %i
- store double 3.200000e+00, double* %arrayidx
- br label %for.inc
-
-for.inc:
- %inc = add nsw i64 %i, 1
- %exitcond = icmp sge i64 %inc, %n
- br i1 %exitcond, label %return, label %loop
-
-return:
- ret void
-}
OpenPOWER on IntegriCloud