1 ; RUN: opt < %s -disable-basicaa -cfl-steens-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
2 ; RUN: opt < %s -aa-pipeline=cfl-steens-aa -passes=aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
4 ; CHECK-LABEL: Function: foo
5 ; CHECK: MayAlias: i32* %A, i32* %B
6 define void @foo(i32* %A, i32* %B) {
8 store i32 0, i32* %A, align 4
9 store i32 0, i32* %B, align 4
13 ; CHECK-LABEL: Function: bar
14 ; CHECK: MayAlias: i32* %A, i32* %B
15 ; CHECK: MayAlias: i32* %A, i32* %arrayidx
16 ; CHECK: MayAlias: i32* %B, i32* %arrayidx
17 define void @bar(i32* %A, i32* %B) {
19 store i32 0, i32* %A, align 4
20 %arrayidx = getelementptr inbounds i32, i32* %B, i64 1
21 store i32 0, i32* %arrayidx, align 4
27 ; CHECK-LABEL: Function: baz
28 ; CHECK: MayAlias: i32* %A, i32* @G
29 define void @baz(i32* %A) {
31 store i32 0, i32* %A, align 4
32 store i32 0, i32* @G, align 4
36 ; CHECK-LABEL: Alias Analysis Evaluator Report
37 ; CHECK: 5 Total Alias Queries Performed
38 ; CHECK: 0 no alias responses
39 ; CHECK: 5 may alias responses