; RUN: opt -basic-aa -print-memoryssa -verify-memoryssa -enable-new-pm=0 -analyze < %s 2>&1 | FileCheck %s ; RUN: opt -aa-pipeline=basic-aa -passes='print' -verify-memoryssa -disable-output < %s 2>&1 | FileCheck %s ; CHECK-LABEL: define @f( ; CHECK: 1 = MemoryDef(liveOnEntry) ; CHECK: MemoryUse(1) MustAlias define @f( %z) { %a = alloca store %z, * %a %zz = load , * %a ret %zz } ; CHECK-LABEL: define i32 @g( ; CHECK: 1 = MemoryDef(liveOnEntry) ; CHECK: MemoryUse(1) MayAlias declare i32* @gg(* %a) define i32 @g(i32 %z, i32 *%bb) { %a = alloca %aa = getelementptr , * %a, i32 0, i32 0 store i32 %z, i32* %aa %bbb = call i32* @gg(* %a) readnone %zz = load i32, i32* %bbb ret i32 %zz }