xref: /llvm-project/llvm/test/Other/print-function-size.ll (revision 8c6305b8b485c26d52409790ffdabe0898af81a1)
1; RUN: opt -S -debug-pass-manager -passes=no-op-function < %s 2>&1 | FileCheck %s
2
3; CHECK: Running pass: NoOpFunctionPass on f (3 instructions)
4; CHECK: Running pass: NoOpFunctionPass on g (1 instruction)
5
6define i32 @f(i32 %i) {
7  %a = add i32 %i, 1
8  %b = add i32 %a, 1
9  ret i32 %b
10}
11
12define i32 @g(i32 %i) {
13  ret i32 0
14}
15