19 lines · plain
1; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes2; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s3; REQUIRES: plugins4 5; Test to make sure that arguments are removed from the function if they are6; unnecessary. And clean up any types that frees up too.7 8; CHECK: ModuleID9; CHECK-NOT: struct.anon10%struct.anon = type { i32 }11 12declare i32 @test2()13 14; CHECK: define void @test() {15define i32 @test(i32 %A, ptr %B, float %C) {16 call i32 @test2()17 ret i32 %118}19