mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
13ad5aaaff
Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84292 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
442 B
LLVM
12 lines
442 B
LLVM
; RUN: opt < %s -instcombine -S | grep {ret i32 0}
|
|
; RUN: opt < %s -instcombine -globaldce -S | not grep malloc
|
|
; PR1201
|
|
define i32 @main(i32 %argc, i8** %argv) {
|
|
%c_19 = alloca i8* ; <i8**> [#uses=2]
|
|
%malloc_206 = malloc i8, i32 10 ; <i8*> [#uses=1]
|
|
store i8* %malloc_206, i8** %c_19
|
|
%tmp_207 = load i8** %c_19 ; <i8*> [#uses=1]
|
|
free i8* %tmp_207
|
|
ret i32 0
|
|
}
|