1 ; This testcase ensures that CFL AA correctly handles simple memory alias
4 ; RUN: opt < %s -disable-basicaa -cfl-anders-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
5 ; RUN: opt < %s -aa-pipeline=cfl-anders-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
7 ; CHECK-LABEL: Function: test_memalias
8 ; CHECK: NoAlias: i64* %a, i64** %b
9 ; CHECK: NoAlias: i32** %c, i64* %a
10 ; CHECK: MayAlias: i32* %d, i64* %a
11 ; CHECK: NoAlias: i32* %d, i64** %b
12 ; CHECK: NoAlias: i32* %d, i32** %c
13 define void @test_memalias() {
14 %a = alloca i64, align 8
15 %b = alloca i64*, align 8
16 store i64* %a, i64** %b
18 %c = bitcast i64** %b to i32**
19 %d = load i32*, i32** %c