1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Transforms/Reassociate/reassociate-deadinst.ll
Davide Italiano aada583c07 [Reassociate] Removing instructions mutates the IR.
Fixes PR 30784. Discussed with Justin, who pointed out that
in the new PassManager infrastructure we can have more fine-grained
control on which analyses we want to preserve, but this is the
best we can do with the current infrastructure.

llvm-svn: 285380
2016-10-28 02:47:09 +00:00

17 lines
358 B
LLVM

; RUN: opt -inline -functionattrs -reassociate %s -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 }