Fix a bug in SCEV's backedge taken count computation from my prior fix in Jan.
[oota-llvm.git] / test / Analysis / ScalarEvolution / smax.ll
index 4818ee97f250e90ebb194f3f282ae494269b4ee7..122e9e47e56f4035273cba7e7efd6eb8d9b67999 100644 (file)
@@ -1,8 +1,10 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep smax | count 2
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep \
-; RUN:     {%. smax %. smax %.}
+; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
 ; PR1614
 
+; CHECK: -->  (%a smax %b)
+; CHECK: -->  (%a smax %b smax %c)
+; CHECK-NOT: smax
+
 define i32 @x(i32 %a, i32 %b, i32 %c) {
   %A = icmp sgt i32 %a, %b
   %B = select i1 %A, i32 %a, i32 %b