We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d8bd3 commit 93df3e8Copy full SHA for 93df3e8
llvm/test/Analysis/BasicAA/call.ll
@@ -0,0 +1,15 @@
1
+; RUN: opt -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 < %s | FileCheck %s
2
+
3
+declare void @callee(ptr)
4
5
+; CHECK-LABEL: Function: test
6
+; CHECK: Both ModRef: Ptr: i32* %a.gep <-> call void @callee(ptr %gep)
7
+define void @test(i1 %c, ptr %arg) {
8
+ %a = alloca [2 x i32]
9
+ %a.gep = getelementptr i8, ptr %a, i64 4
10
+ %sel = select i1 %c, ptr %arg, ptr null
11
+ %gep = getelementptr i8, ptr %sel, i64 4
12
+ call void @callee(ptr %gep)
13
+ %l = load i32, ptr %a.gep
14
+ ret void
15
+}
0 commit comments