source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/CFLAliasAnalysis/arguments.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: 432 bytes
Line 
1; This testcase ensures that CFL AA gives conservative answers on variables
2; that involve arguments.
3
4; RUN: opt < %s -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
5
6; CHECK:     Function: test
7
8define void @test(i1 %c, i32* %arg1, i32* %arg2) {
9  ; CHECK: 6 Total Alias Queries Performed
10  ; CHECK: 3 no alias responses
11  %a = alloca i32, align 4
12  %b = select i1 %c, i32* %arg1, i32* %arg2
13
14  ret void
15}
Note: See TracBrowser for help on using the repository browser.