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 |
rev |
line source |
150
|
1 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
|
|
2 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
|
3 ; REQUIRES: plugins
|
|
4
|
|
5 ; Test to make sure that arguments are removed from the function if they are
|
|
6 ; unnecessary. And clean up any types that frees up too.
|
|
7
|
|
8 ; CHECK: ModuleID
|
|
9 ; CHECK-NOT: struct.anon
|
|
10 %struct.anon = type { i32 }
|
|
11
|
|
12 declare i32 @test2()
|
|
13
|
|
14 ; CHECK: define void @test() {
|
|
15 define i32 @test(i32 %A, %struct.anon* %B, float %C) {
|
|
16 call i32 @test2()
|
|
17 ret i32 %1
|
|
18 }
|