While testing particular algorithms to compute loop iteration count the brute
authorWojciech Matyjewicz <wmatyjewicz@fastmail.fm>
Sat, 19 Jul 2008 13:26:15 +0000 (13:26 +0000)
committerWojciech Matyjewicz <wmatyjewicz@fastmail.fm>
Sat, 19 Jul 2008 13:26:15 +0000 (13:26 +0000)
force evaluation (ComputeIterationCountExhaustively) should be turned off.

It doesn't apply to trip-count2.ll because this file tests the brute force
evaluation.

The test for PR2364 (2008-05-25-NegativeStepToZero.ll) currently fails
showing that the patch for this bug doesn't work. I'll fix it in a few hours
with a patch for PR2088.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53792 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll
test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll
test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll
test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll
test/Analysis/ScalarEvolution/trip-count.ll

index fca974f7c2389d8c481c04af8eae4a9f36980147..237ba9b98c6f140884ab215a6141212169d169bd 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep {Loop bb:  100 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN:   -scalar-evolution-max-iterations=0 | grep {Loop bb:  100 iterations}
 ; PR1533
 
 @array = weak global [101 x i32] zeroinitializer, align 32             ; <[100 x i32]*> [#uses=1]
index 9f9b6699a968fabdbc65434fa6f9e27a779388b1..fcdc85052e8cfefa4e271bf9f0cae6226d53b4cd 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep {13 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN:   -scalar-evolution-max-iterations=0 | grep {13 iterations}
 ; PR1706
 
 define i32 @f() {
index 7778156d6473cf1dd163e7d0bfaf1402e0028eb1..228de9e509e869aba2588d1ea002fe3f9199df47 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep {61 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN:   -scalar-evolution-max-iterations=0 | grep {61 iterations}
 ; PR2364
 
 define i32 @func_6() nounwind  {
index d52f720b4863e633859bbeb89c7e3f764220a108..26550fd795b2e5393cb030230b790c1991cfe1cb 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
-; RUN:   grep {100 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN:   -scalar-evolution-max-iterations=0 | grep {100 iterations}
 ; PR1101
 
 @A = weak global [1000 x i32] zeroinitializer, align 32         
index c37f4199f3be1d15b41731a21593690056566c27..ded14c3201860da7640ab9344a0324f9a0d97417 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
-; RUN:   grep {10000 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN:   -scalar-evolution-max-iterations=0 | grep {10000 iterations}
 ; PR1101
 
 @A = weak global [1000 x i32] zeroinitializer, align 32