brintos

brintos / llvm-project-archived public Read only

0
0
Text · 517 B · 06c77f4 Raw
16 lines · plain
1; RUN: opt -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output < %s 2>&1 | FileCheck %s2 3declare void @takebyval(ptr byval(i32) %p)4 5define i32 @tailbyval() {6entry:7  %p = alloca i328  store i32 42, ptr %p9  tail call void @takebyval(ptr byval(i32) %p)10  %rv = load i32, ptr %p11  ret i32 %rv12}13; FIXME: This should be Just Ref.14; CHECK-LABEL: Function: tailbyval: 1 pointers, 1 call sites15; CHECK-NEXT:   Just Ref:  Ptr: i32* %p       <->  tail call void @takebyval(ptr byval(i32) %p)16