brintos

brintos / llvm-project-archived public Read only

0
0
Text · 699 B · 29813d1 Raw
26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes=inline -S < %s | FileCheck %s3 4declare void @external_function(ptr)5 6define internal void @inlined_function(ptr %arg) {7  call void @external_function(ptr %arg)8  ret void9}10 11; TODO: This is a miscompile.12define void @test(ptr %p) {13; CHECK-LABEL: @test(14; CHECK-NEXT:    [[ARG:%.*]] = load ptr, ptr [[P:%.*]], align 8, !alias.scope !015; CHECK-NEXT:    call void @external_function(ptr [[ARG]]), !noalias !016; CHECK-NEXT:    ret void17;18  %arg = load ptr, ptr %p, !alias.scope !019  tail call void @inlined_function(ptr %arg), !noalias !020  ret void21}22 23!0 = !{!1}24!1 = distinct !{!1, !2}25!2 = distinct !{!2}26