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