1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/Transforms/Reassociate/reassociate-deadinst.ll
Hubert Tong 10a4d74cf7 reassociate-deadinst.ll: avoid accidental match on path
Pipe from stdin to avoid accidentally matching on the path.

llvm-svn: 287583
2016-11-21 21:53:01 +00:00

17 lines
360 B
LLVM

; 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 }