brintos

brintos / llvm-project-archived public Read only

0
0
Text · 336 B · 103bc0d Raw
21 lines · plain
1; This test ensures that inlining an "empty" function does not destroy the CFG2;3; RUN: opt < %s -passes=inline -S | FileCheck %s4 5define i32 @func(i32 %i) {6  ret i32 %i7}8 9 10define i32 @main() {11; CHECK-LABEL: define i32 @main()12entry:13  %X = call i32 @func(i32 7)14; CHECK-NOT: call15; CHECK-NOT: br16 17  ret i32 %X18; CHECK: ret i32 719}20 21