brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 6652ec8 Raw
61 lines · plain
1; RUN: opt -S -passes=partial-inliner -max-num-inline-blocks=2 -skip-partial-inlining-cost-analysis < %s  | FileCheck %s2define i32 @test(i32 %arg) local_unnamed_addr #0 {3bb:4  %tmp = tail call i32 (...) @bar() #15  %tmp1 = icmp slt i32 %arg, 06  br i1 %tmp1, label %bb6, label %bb27 8bb2:                                              ; preds = %bb9  tail call void (...) @foo() #110  tail call void (...) @foo() #111  tail call void (...) @foo() #112  tail call void (...) @foo() #113  tail call void (...) @foo() #114  %tmp3 = tail call i32 (...) @bar() #115  %tmp4 = icmp eq i32 %tmp3, 1016  br i1 %tmp4, label %bb6, label %bb517 18bb5:                                              ; preds = %bb219  tail call void (...) @foo() #120  tail call void (...) @foo() #121  tail call void (...) @foo() #122  tail call void (...) @foo() #123  br label %bb624 25bb6:                                              ; preds = %bb5, %bb2, %bb26  %tmp7 = phi i32 [ %tmp, %bb5 ], [ 0, %bb ], [ %tmp, %bb2 ]27  ret i32 %tmp728}29 30declare i32 @bar(...) local_unnamed_addr #131 32declare void @foo(...) local_unnamed_addr #133 34; Function Attrs: nounwind uwtable35define i32 @dummy_caller(i32 %arg) local_unnamed_addr #0 {36; CHECK-LABEL: @dummy_caller37; CHECK: codeRepl.i:38; CHECK:  call void @test.1.bb2()39; CHECK-NOT: load40; CHECK:  br41 42bb:43  %tmp = tail call i32 @test(i32 %arg)44  ret i32 %tmp45}46 47; CHECK-LABEL: define internal void @test.1.bb2()48; CHECK: .exitStub:49; CHECK-NOT:  store i32 %tmp7, ptr %tmp7.out50; CHECK: ret51 52 53attributes #0 = { nounwind uwtable }54attributes #1 = { nounwind uwtable }55 56!llvm.module.flags = !{!0}57!llvm.ident = !{!1}58 59!0 = !{i32 1, !"wchar_size", i32 4}60!1 = !{!"clang version 5.0.0 (trunk 303574)"}61