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

Andrew Trick atrick at apple.com
Thu Mar 22 10:09:32 PDT 2012


Author: atrick
Date: Thu Mar 22 12:09:31 2012
New Revision: 153256

URL: http://llvm.org/viewvc/llvm-project?rev=153256&view=rev
Log:
Test scalar evolution directly instead of testing the result of
canonical indvars.

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=153256&r1=153255&r2=153256&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll (original)
+++ llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll Thu Mar 22 12:09:31 2012
@@ -1,14 +1,12 @@
-; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
+; RUN: opt < %s -analyze -scalar-evolution -S | FileCheck %s
 
-; 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. 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:
+; Indvars should be able to find the trip count 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. Unfortunately, indvars is not yet able to find
+; the comparison for the other two loops in this testcase.
+;
+; CHECK: Loop %bb6: backedge-taken count is (-1 + %w)
 
 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