mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +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…
Reference in New Issue
Block a user