brintos

brintos / llvm-project-archived public Read only

0
0
Text · 672 B · ede8b01 Raw
33 lines · plain
1; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s2; If GEP base doesn't alias Z, then GEP doesn't alias Z.3; rdar://72825914 5@Y = common global i32 06@Z = common global i32 07 8; CHECK: Function: foo9; CHECK:   NoAlias: i32* %P, i32* @Z10 11define void @foo(i32 %cond) nounwind {12entry:13  %a = alloca i3214  %tmp = icmp ne i32 %cond, 015  br i1 %tmp, label %bb, label %bb116 17bb:18  br label %bb219 20bb1:21  br label %bb222 23bb2:24  %P = phi ptr [ %a, %bb ], [ @Y, %bb1 ]25  %tmp1 = load i32, ptr @Z, align 426  store i32 123, ptr %P, align 427  %tmp2 = load i32, ptr @Z, align 428  br label %return29 30return:31  ret void32}33