1; This testcase ensures that CFL AA won't be too conservative when trying to do
2; interprocedural analysis on simple callee
3
4; RUN: opt < %s -disable-basicaa -cfl-steens-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
5; RUN: opt < %s -aa-pipeline=cfl-steens-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
6
7; CHECK-LABEL: Function: noop_callee
8; CHECK: MayAlias: i32* %arg1, i32* %arg2
9define void @noop_callee(i32* %arg1, i32* %arg2) {
10  store i32 0, i32* %arg1
11  store i32 0, i32* %arg2
12  ret void
13}
14; CHECK-LABEL: Function: test_noop
15; CHECK: NoAlias: i32* %a, i32* %b
16define void @test_noop() {
17  %a = alloca i32, align 4
18  %b = alloca i32, align 4
19  call void @noop_callee(i32* %a, i32* %b)
20
21  ret void
22}
23