]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Transforms/Reassociate/reassociate-deadinst.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / Transforms / Reassociate / reassociate-deadinst.ll
1 ; RUN: opt < %s -inline -functionattrs -reassociate -S | FileCheck %s
2
3 ; CHECK-NOT: func1
4 ; CHECK-LABEL: main
5 ; CHECK-NEXT: ret void
6
7 define internal i16 @func1() noinline #0 {
8   ret i16 0
9 }
10
11 define void @main(i16 %argc, i16** %argv) #0 {
12   %_tmp0 = call i16 @func1()
13   %_tmp2 = zext i16 %_tmp0 to i32
14   ret void
15 }
16 attributes #0 = { minsize nounwind optsize }