1; This testcase ensures that CFL AA gives conservative answers on variables
2; that involve arguments.
3
4; RUN: opt < %s -aa-pipeline=cfl-steens-aa -passes=aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
5
6; CHECK:     Function: test
7
8define void @test(i1 %c, i32* %arg1, i32* %arg2) {
9  ; CHECK: 6 Total Alias Queries Performed
10  ; CHECK: 3 no alias responses
11  %a = alloca i32, align 4
12  %b = select i1 %c, i32* %arg1, i32* %arg2
13  load i32, i32* %a
14  load i32, i32* %b
15  load i32, i32* %arg1
16  load i32, i32* %arg2
17
18  ret void
19}
20