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