comparison test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 95c75e76d11b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
1 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s 1 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2 2
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4
3 ; CHECK: Function: foo 5 ; CHECK: Function: foo
4 ; CHECK: MayAlias: i32* %Ipointer, i32* %Jpointer 6 ; CHECK: PartialAlias: i32* %Ipointer, i32* %Jpointer
5 ; CHECK: 9 no alias responses 7 ; CHECK: 9 no alias responses
6 ; CHECK: 6 may alias responses 8 ; CHECK: 6 partial alias responses
7 9
8 define void @foo(i32* noalias %p, i32* noalias %q, i32 %i, i32 %j) { 10 define void @foo(i32* noalias %p, i32* noalias %q, i32 %i, i32 %j) {
9 %Ipointer = getelementptr i32* %p, i32 %i 11 %Ipointer = getelementptr i32* %p, i32 %i
10 %qi = getelementptr i32* %q, i32 %i 12 %qi = getelementptr i32* %q, i32 %i
11 %Jpointer = getelementptr i32* %p, i32 %j 13 %Jpointer = getelementptr i32* %p, i32 %j