summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/reassociate-deadinst.ll
blob: df314d571d37a546702057b06ce4be5ba4566d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: opt < %s -inline -functionattrs -reassociate -S | FileCheck %s

; CHECK-NOT: func1
; CHECK-LABEL: main
; CHECK-NEXT: ret void

define internal i16 @func1() noinline #0 {
  ret i16 0
}

define void @main(i16 %argc, i16** %argv) #0 {
  %_tmp0 = call i16 @func1()
  %_tmp2 = zext i16 %_tmp0 to i32
  ret void
}
attributes #0 = { minsize nounwind optsize }
OpenPOWER on IntegriCloud