1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=argpromotion,inline -S %s | FileCheck %s
4 ; argpromo removes @b's parameter (removing @c's reference to @a without updating the ref edge in the call graph), then the inliner inlines @a into @d and attempts to remove @a.
6 define internal void @a() alwaysinline {
11 define internal void @b(ptr) noinline {
13 ; CHECK-NEXT: ret void
18 define internal void @c() noinline {
20 ; CHECK-NEXT: call void @b()
21 ; CHECK-NEXT: ret void
29 ; CHECK-NEXT: call void @e(ptr @c)
30 ; CHECK-NEXT: ret void