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 -aa-pipeline=cfl-steens-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
5
6; CHECK-LABEL: Function: noop_callee
7; CHECK: MayAlias: i32* %arg1, i32* %arg2
8define void @noop_callee(i32* %arg1, i32* %arg2) {
9  store i32 0, i32* %arg1
10  store i32 0, i32* %arg2
11  ret void
12}
13; CHECK-LABEL: Function: test_noop
14; CHECK: NoAlias: i32* %a, i32* %b
15define void @test_noop() {
16  %a = alloca i32, align 4
17  %b = alloca i32, align 4
18  load i32, i32* %a
19  load i32, i32* %b
20  call void @noop_callee(i32* %a, i32* %b)
21
22  ret void
23}
24