diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-07 20:42:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-07 20:42:20 +0000 |
commit | 134cde912a9ae7103d6c3bf7f2c1a6b2758b1ab3 (patch) | |
tree | f13b685bcb3c6405857509ee4d9199ae3b332545 /llvm/test/Transforms/InstCombine/objsize.ll | |
parent | 117ff9005c7f7b8bd26b50ad0250d06a0b0545be (diff) | |
download | bcm5719-llvm-134cde912a9ae7103d6c3bf7f2c1a6b2758b1ab3.tar.gz bcm5719-llvm-134cde912a9ae7103d6c3bf7f2c1a6b2758b1ab3.zip |
Revert 122959, it needs more thought. Add it back to README.txt with additional notes.
llvm-svn: 123030
Diffstat (limited to 'llvm/test/Transforms/InstCombine/objsize.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/objsize.ll | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/llvm/test/Transforms/InstCombine/objsize.ll b/llvm/test/Transforms/InstCombine/objsize.ll index 4154ea0afbb..043525b7555 100644 --- a/llvm/test/Transforms/InstCombine/objsize.ll +++ b/llvm/test/Transforms/InstCombine/objsize.ll @@ -160,30 +160,3 @@ define i32 @test7() { ret i32 %objsize } -define i32 @test8(i32 %x) { -; CHECK: @test8 - %alloc = call noalias i8* @malloc(i32 %x) nounwind - %objsize = call i32 @llvm.objectsize.i32(i8* %alloc, i1 false) nounwind readonly -; CHECK-NEXT: ret i32 %x - ret i32 %objsize -} - -define i32 @test9(i32 %x) { -; CHECK: @test9 - %alloc = call noalias i8* @malloc(i32 %x) nounwind - %gep = getelementptr inbounds i8* %alloc, i32 16 - %objsize = call i32 @llvm.objectsize.i32(i8* %gep, i1 false) nounwind readonly -; CHECK-NOT: ret i32 %x - ret i32 %objsize -} - -define i8* @test10(i32 %x) { -; CHECK: @test10 - %alloc = call noalias i8* @malloc(i32 %x) nounwind - %objsize = call i32 @llvm.objectsize.i32(i8* %alloc, i1 false) nounwind readonly - tail call i8* @__memset_chk(i8* %alloc, i32 0, i32 %x, i32 %objsize) nounwind -; CHECK-NOT: @llvm.objectsize -; CHECK: @llvm.memset - ret i8* %alloc -; CHECK: ret i8* -} |