source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/CFLAliasAnalysis/basic-interproc.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 590 bytes
Line 
1; This testcase ensures that CFL AA gives conservative answers on variables
2; that involve arguments.
3
4; RUN: opt < %s -disable-basicaa -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
5
6; CHECK:     Function: test
7; CHECK: 2 Total Alias Queries Performed
8; CHECK: 1 no alias responses
9; ^^ In @test2, %arg1 and %arg2 may alias
10
11define void @test2(i32* %arg1, i32* %arg2) {
12  store i32 0, i32* %arg1
13  store i32 0, i32* %arg2
14
15  ret void
16}
17
18define void @test() {
19  %a = alloca i32, align 4
20  %b = alloca i32, align 4
21  call void @test2(i32* %a, i32* %b)
22
23  ret void
24}
Note: See TracBrowser for help on using the repository browser.