mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
7a90a95ac2
Following https://reviews.llvm.org/D82607. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D82683
14 lines
325 B
LLVM
14 lines
325 B
LLVM
; RUN: opt < %s -basic-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Function: foo
|
|
; CHECK: MayAlias: i32* %x, i32* %y
|
|
|
|
define void @foo(i32* noalias %x) {
|
|
%y = call i32* @unclear(i32* %x)
|
|
store i32 0, i32* %x
|
|
store i32 0, i32* %y
|
|
ret void
|
|
}
|
|
|
|
declare i32* @unclear(i32* %a)
|