mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
9f5de6dadc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182755 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
559 B
LLVM
24 lines
559 B
LLVM
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
|
|
|
|
declare i32* @captures(i32* %cap) nounwind readonly
|
|
|
|
define void @no(i32* noalias %a, i32* %b) nounwind {
|
|
entry:
|
|
store i32 1, i32* %a
|
|
%cap = call i32* @captures(i32* %a) nounwind readonly
|
|
%l = load i32* %b
|
|
ret void
|
|
}
|
|
|
|
; CHECK: NoAlias: i32* %a, i32* %b
|
|
|
|
define void @yes(i32* %c, i32* %d) nounwind {
|
|
entry:
|
|
store i32 1, i32* %c
|
|
%cap = call i32* @captures(i32* %c) nounwind readonly
|
|
%l = load i32* %d
|
|
ret void
|
|
}
|
|
|
|
; CHECK: MayAlias: i32* %c, i32* %d
|