annotate llvm/test/BugPoint/remove_arguments_test.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
anatofuz
parents:
diff changeset
2 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
anatofuz
parents:
diff changeset
3 ; REQUIRES: plugins
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 ; Test to make sure that arguments are removed from the function if they are
anatofuz
parents:
diff changeset
6 ; unnecessary. And clean up any types that frees up too.
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 ; CHECK: ModuleID
anatofuz
parents:
diff changeset
9 ; CHECK-NOT: struct.anon
anatofuz
parents:
diff changeset
10 %struct.anon = type { i32 }
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 declare i32 @test2()
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 ; CHECK: define void @test() {
anatofuz
parents:
diff changeset
15 define i32 @test(i32 %A, %struct.anon* %B, float %C) {
anatofuz
parents:
diff changeset
16 call i32 @test2()
anatofuz
parents:
diff changeset
17 ret i32 %1
anatofuz
parents:
diff changeset
18 }