diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-03 22:08:19 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-03 22:08:19 +0000 |
commit | cb348b9b45025393ec5b28eac8bb6773a9b603f6 (patch) | |
tree | 74049a21e8b92bf60a169e917a10f934361363cc /test | |
parent | 26f61a158b3cce69252c05cc0e79f500d6c3d92e (diff) |
remove calls to calloc if the allocated memory is not used (it was already being done for malloc)
fix a few typos found by Chad in my previous commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/objsize.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/objsize.ll b/test/Transforms/InstCombine/objsize.ll index 6b5c0f56eb..39ad3db5ba 100644 --- a/test/Transforms/InstCombine/objsize.ll +++ b/test/Transforms/InstCombine/objsize.ll @@ -165,7 +165,7 @@ define i32 @test8() { %alloc = call noalias i8* @calloc(i32 5, i32 7) nounwind %gep = getelementptr inbounds i8* %alloc, i32 5 %objsize = call i32 @llvm.objectsize.i32(i8* %gep, i1 false) nounwind readonly -; CHECK: ret i32 30 +; CHECK-NEXT: ret i32 30 ret i32 %objsize } @@ -175,6 +175,6 @@ define i32 @test9() { %alloc = call noalias i8* @calloc(i32 100000000, i32 100000000) nounwind %gep = getelementptr inbounds i8* %alloc, i32 2 %objsize = call i32 @llvm.objectsize.i32(i8* %gep, i1 true) nounwind readonly -; CHECK: ret i32 0 +; CHECK-NEXT: ret i32 0 ret i32 %objsize } |