brintos

brintos / llvm-project-archived public Read only

0
0
Text · 402 B · 76e030a Raw
24 lines · plain
1; RUN: opt < %s -passes=inline -S | FileCheck %s2 3define available_externally i32 @test_function() {4; CHECK-NOT: @test_function5entry:6  ret i32 47}8 9 10define i32 @result() {11; CHECK-LABEL: define i32 @result()12entry:13  %A = call i32 @test_function()14; CHECK-NOT: call15; CHECK-NOT: @test_function16 17  %B = add i32 %A, 118  ret i32 %B19; CHECK: add i3220; CHECK-NEXT: ret i3221}22 23; CHECK-NOT: @test_function24