diff options
author | Eric Christopher <echristo@apple.com> | 2010-03-06 03:11:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-03-06 03:11:35 +0000 |
commit | d8b43d0e5974a595e76055bc9adec338cd8743fd (patch) | |
tree | 77bc14e410697c804162e5122b9ace315fa83a12 /llvm/test/Transforms/InstCombine/objsize.ll | |
parent | 066b8ea59006decf741b54c437da6d5dc6ab4e0d (diff) | |
download | bcm5719-llvm-d8b43d0e5974a595e76055bc9adec338cd8743fd.tar.gz bcm5719-llvm-d8b43d0e5974a595e76055bc9adec338cd8743fd.zip |
Temporarily revert:
Log:
Transform @llvm.objectsize to integer if the argument is a result of malloc of known size.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/trunk/test/Transforms/InstCombine/objsize.ll
It appears to be causing swb and nightly test failures.
llvm-svn: 97866
Diffstat (limited to 'llvm/test/Transforms/InstCombine/objsize.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/objsize.ll | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/test/Transforms/InstCombine/objsize.ll b/llvm/test/Transforms/InstCombine/objsize.ll index 8bbfa8fb7e0..bf1a37f975d 100644 --- a/llvm/test/Transforms/InstCombine/objsize.ll +++ b/llvm/test/Transforms/InstCombine/objsize.ll @@ -118,24 +118,8 @@ entry: ret i32 0 } -@s = external global i8* - -define void @test5(i32 %n) nounwind ssp { -; CHECK: @test5 -entry: - %0 = tail call noalias i8* @malloc(i32 20) nounwind - %1 = tail call i32 @llvm.objectsize.i32(i8* %0, i1 false) - %2 = load i8** @s, align 8 -; CHECK-NOT: @llvm.objectsize -; CHECK: @__memcpy_chk(i8* %0, i8* %1, i32 10, i32 20) - %3 = tail call i8* @__memcpy_chk(i8* %0, i8* %2, i32 10, i32 %1) nounwind - ret void -} - declare i8* @__memset_chk(i8*, i32, i64, i64) nounwind -declare noalias i8* @malloc(i32) nounwind - declare i32 @llvm.objectsize.i32(i8*, i1) nounwind readonly declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readonly |