mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
66284e063a
Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84987 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
445 B
LLVM
14 lines
445 B
LLVM
; RUN: opt < %s -instcombine -globaldce -S | FileCheck %s
|
|
; PR1201
|
|
define i32 @main(i32 %argc, i8** %argv) {
|
|
%c_19 = alloca i8* ; <i8**> [#uses=2]
|
|
%malloc_206 = malloc i8, i32 10 ; <i8*> [#uses=1]
|
|
; CHECK-NOT: malloc
|
|
store i8* %malloc_206, i8** %c_19
|
|
%tmp_207 = load i8** %c_19 ; <i8*> [#uses=1]
|
|
free i8* %tmp_207
|
|
; CHECK-NOT: free
|
|
ret i32 0
|
|
; CHECK: ret i32 0
|
|
}
|