mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
New testcase for malloc promotion
llvm-svn: 4533
This commit is contained in:
parent
b7afa2004a
commit
862c22518a
7
test/Regression/Transforms/InstCombine/malloc.ll
Normal file
7
test/Regression/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