[llvm-commits] [llvm] r139576 - /llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll

Andrew Trick atrick at apple.com
Mon Sep 12 19:45:26 PDT 2011


Author: atrick
Date: Mon Sep 12 21:45:26 2011
New Revision: 139576

URL: http://llvm.org/viewvc/llvm-project?rev=139576&view=rev
Log:
This test only makes sense with -enable-iv-rewrite.

Modified:
    llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll

Modified: llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll?rev=139576&r1=139575&r2=139576&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll (original)
+++ llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll Mon Sep 12 21:45:26 2011
@@ -1,6 +1,4 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: grep select %t | count 2
-; RUN: grep {icmp ne i32.\* } %t
+; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
 
 ; Indvars should be able to insert a canonical induction variable
 ; for the bb6 loop without using a maximum calculation (icmp, select)
@@ -8,6 +6,9 @@
 ; by an appropriate conditional branch. Unfortunately, indvars is
 ; not yet able to find the comparison for the other two loops in
 ; this testcase.
+; CHECK: entry:
+; CHECK-NOT: select
+; CHECK: bb6:
 
 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"





More information about the llvm-commits mailing list