[SCEV] Teach isLoopBackedgeGuardedByCond to exploit trip counts.
[oota-llvm.git] / test / Analysis / BasicAA / 2010-09-15-GEP-SignedArithmetic.ll
1 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2 ; PR7959
3
4 target datalayout = "e-p:32:32:32"
5
6 ; CHECK: 1 partial alias response
7
8 define i32 @test(i32* %tab, i32 %indvar) nounwind {
9   %tmp31 = mul i32 %indvar, -2
10   %tmp32 = add i32 %tmp31, 30
11   %t.5 = getelementptr i32, i32* %tab, i32 %tmp32
12   %loada = load i32, i32* %tab
13   store i32 0, i32* %t.5
14   %loadb = load i32, i32* %tab
15   %rval = add i32 %loada, %loadb
16   ret i32 %rval
17 }