1 ; This testcase ensures that CFL AA gives conservative answers on variables
2 ; that involve arguments.
4 ; RUN: opt < %s -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
6 ; CHECK: Function: test
7 ; CHECK: 4 Total Alias Queries Performed
8 ; CHECK: 3 no alias responses
9 ; ^ The 1 MayAlias is due to %arg1. Sadly, we don't currently have machinery
10 ; in place to check whether %arg1 aliases %a, because BasicAA takes care of
13 define i32* @test2(i32* %arg1) {
14 store i32 0, i32* %arg1
16 %a = alloca i32, align 4
21 %a = alloca i32, align 4
22 %b = alloca i32, align 4
23 %c = call i32* @test2(i32* %a)