diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-10 17:14:00 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-10 17:14:00 +0000 |
commit | e54874471cf565bbacdca69c95ae7287badc578f (patch) | |
tree | fd2341972c1f5e8d2ad3ed31ce77eaf10c4e9440 /test/Transforms/DeadStoreElimination | |
parent | 9777f61bfe36a53757977cd777f2b4e73fc3e8a3 (diff) | |
download | external_llvm-e54874471cf565bbacdca69c95ae7287badc578f.zip external_llvm-e54874471cf565bbacdca69c95ae7287badc578f.tar.gz external_llvm-e54874471cf565bbacdca69c95ae7287badc578f.tar.bz2 |
teach DSE and isInstructionTriviallyDead() about calloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DeadStoreElimination')
-rw-r--r-- | test/Transforms/DeadStoreElimination/simple.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Transforms/DeadStoreElimination/simple.ll b/test/Transforms/DeadStoreElimination/simple.ll index 81eb5a8..7c8a9b3 100644 --- a/test/Transforms/DeadStoreElimination/simple.ll +++ b/test/Transforms/DeadStoreElimination/simple.ll @@ -164,7 +164,7 @@ define i32* @test13() { } declare noalias i8* @malloc(i32) - +declare noalias i8* @calloc(i32, i32) define void @test14(i32* %Q) { @@ -258,3 +258,11 @@ define void @test20() { } ; CHECK: @test20 ; CHECK-NEXT: ret void + +; CHECK: @test21 +define void @test21() { + %m = call i8* @calloc(i32 9, i32 7) + store i8 0, i8* %m +; CHECK-NEXT: ret void + ret void +} |