xref: /llvm-project/llvm/test/Transforms/Inline/simplified_to.ll (revision 7f094f7f9d3e3c529afcfd553cee3b64419e72f2)
1; RUN: opt < %s -passes="print<inline-cost>" 2>&1 | FileCheck %s
2
3; CHECK-LABEL: @test()
4; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}, simplified to i1 false
5; CHECK:   %1 = icmp eq i32 4, 5
6
7define i32 @test() {
8  %1 = icmp eq i32 4, 5
9  ret i32 0
10}
11
12define void @main() {
13  %1 = call i32 @test()
14  ret void
15}
16