mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
New testcase for malloc promotion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c405daf392
commit
0eaaa56f1f
7
test/Transforms/InstCombine/malloc.ll
Normal file
7
test/Transforms/InstCombine/malloc.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; test that malloc's with a constant argument are promoted to array allocations
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep getelementptr
|
||||
|
||||
int* %test() {
|
||||
%X = malloc int, uint 4
|
||||
ret int* %X
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user