aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-16 18:52:57 +0000
committerDan Gohman <gohman@apple.com>2008-09-16 18:52:57 +0000
commit70ff4cf1baf8cce04b38752ea485425782fb07b8 (patch)
tree8c577c8b629c215ae200ce2e0505518be0681a14 /test/Analysis
parent81b28ceab6bd0ed6a784b7dc952ddb0b03fc6de7 (diff)
Finally re-apply r46959. This is made feasible by the combination
of r56230, r56232, and r56246. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r--test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll1
-rw-r--r--test/Analysis/ScalarEvolution/avoid-smax-1.ll6
2 files changed, 4 insertions, 3 deletions
diff --git a/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll b/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
index 119e165917..a01007d8c2 100644
--- a/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
+++ b/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
@@ -1,5 +1,4 @@
; RUN: llvm-as < %s | opt -scalar-evolution -analyze | grep {Loop header: (0 smax %n) iterations!}
-; XFAIL: *
define void @foo(i32 %n) {
entry:
diff --git a/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/test/Analysis/ScalarEvolution/avoid-smax-1.ll
index 5fcbf62d3d..b2d0ba0319 100644
--- a/test/Analysis/ScalarEvolution/avoid-smax-1.ll
+++ b/test/Analysis/ScalarEvolution/avoid-smax-1.ll
@@ -1,11 +1,13 @@
; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
-; RUN: not grep select %t
+; RUN: grep select %t | count 2
; RUN: grep {icmp ne i32.\* %w } %t
; Indvars should be able to insert a canonical induction variable
; for the bb6 loop without using a maximum calculation (icmp, select)
; because it should be able to prove that the comparison is guarded
-; by an appropriate conditional branch.
+; by an appropriate conditional branch. Unfortunately, indvars is
+; not yet able to find the comparison for the other too loops in
+; this testcase.
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9"