brintos

brintos / llvm-project-archived public Read only

0
0
Text · 483 B · c394511 Raw
16 lines · plain
1; RUN: opt -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 < %s | FileCheck %s2 3declare void @callee(ptr)4 5; CHECK-LABEL: Function: test6; CHECK: NoModRef: Ptr: i32* %a.gep <-> call void @callee(ptr %gep)7define void @test(i1 %c, ptr %arg) {8  %a = alloca [2 x i32]9  %a.gep = getelementptr i8, ptr %a, i64 410  %sel = select i1 %c, ptr %arg, ptr null11  %gep = getelementptr i8, ptr %sel, i64 412  call void @callee(ptr %gep)13  %l = load i32, ptr %a.gep14  ret void15}16