Merging r261384:
[oota-llvm.git] / test / Analysis / CFLAliasAnalysis / arguments.ll
1 ; This testcase ensures that CFL AA gives conservative answers on variables
2 ; that involve arguments.
3
4 ; RUN: opt < %s -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
5
6 ; CHECK:     Function: test
7
8 define 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
14   ret void
15 }