1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=inline -S < %s | FileCheck %s
4 declare void @external_function(ptr)
6 define internal void @inlined_function(ptr %arg) {
7 call void @external_function(ptr %arg)
11 ; TODO: This is a miscompile.
12 define void @test(ptr %p) {
14 ; CHECK-NEXT: [[ARG:%.*]] = load ptr, ptr [[P:%.*]], align 8, !alias.scope !0
15 ; CHECK-NEXT: call void @external_function(ptr [[ARG]]), !noalias !0
16 ; CHECK-NEXT: ret void
18 %arg = load ptr, ptr %p, !alias.scope !0
19 tail call void @inlined_function(ptr %arg), !noalias !0
24 !1 = distinct !{!1, !2}