2022-03-09 06:00:08 +08:00
|
|
|
; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
2007-08-02 09:18:14 +08:00
|
|
|
|
2012-04-24 17:15:38 +08:00
|
|
|
; CHECK: Function: foo
|
|
|
|
; CHECK: MayAlias: i32* %x, i32* %y
|
2007-08-02 09:18:14 +08:00
|
|
|
|
|
|
|
define void @foo(i32* noalias %x) {
|
|
|
|
%y = call i32* @unclear(i32* %x)
|
|
|
|
store i32 0, i32* %x
|
|
|
|
store i32 0, i32* %y
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-24 17:15:38 +08:00
|
|
|
|
|
|
|
declare i32* @unclear(i32* %a)
|