aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/Inline/simplified_to.ll
blob: 92c84b586800c6137449314268cbe0cccb87dacf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt < %s -passes="print<inline-cost>" 2>&1 | FileCheck %s

; CHECK-LABEL: @test()
; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}, simplified to i1 false
; CHECK:   %1 = icmp eq i32 4, 5

define i32 @test() {
  %1 = icmp eq i32 4, 5
  ret i32 0
}

define void @main() {
  %1 = call i32 @test()
  ret void
}