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 1ac3e87 commit eb86501Copy full SHA for eb86501
llvm/test/Transforms/Inline/simplify-crosscallsite.ll
@@ -51,3 +51,17 @@ define i32 @caller_not_simplified(i32 %arg) {
51
%v = call i32 @callee([2 x i32] %agg1)
52
ret i32 %v
53
}
54
+
55
+define i32 @caller_not_simplified2(i32 %arg) {
56
+; CHECK-LABEL: define i32 @caller_not_simplified2(
57
+; CHECK-SAME: i32 [[ARG:%.*]]) {
58
+; CHECK-NEXT: [[AGG0:%.*]] = insertvalue [2 x i32] poison, i32 0, 1
59
+; CHECK-NEXT: [[AGG1:%.*]] = insertvalue [2 x i32] [[AGG0]], i32 [[ARG]], 0
60
+; CHECK-NEXT: [[V:%.*]] = call i32 @callee([2 x i32] [[AGG1]])
61
+; CHECK-NEXT: ret i32 [[V]]
62
+;
63
+ %agg0 = insertvalue [2 x i32] poison, i32 0, 1
64
+ %agg1 = insertvalue [2 x i32] %agg0, i32 %arg, 0
65
+ %v = call i32 @callee([2 x i32] %agg1)
66
+ ret i32 %v
67
+}
0 commit comments