summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyLibCalls
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-22 15:25:31 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-22 15:25:31 +0000
commitad40c0a4252a549388c299fa80d15dc67f13242e (patch)
tree7f844ef2326d4cbbebe01dc6f7262d9db3ee015a /llvm/test/Transforms/SimplifyLibCalls
parent924279ca0e2f9990e8cd6bc240f8ca5359540868 (diff)
downloadbcm5719-llvm-ad40c0a4252a549388c299fa80d15dc67f13242e.tar.gz
bcm5719-llvm-ad40c0a4252a549388c299fa80d15dc67f13242e.zip
revert my previous patches that introduced an additional parameter to the objectsize intrinsic.
After a lot of discussion, we realized it's not the best option for run-time bounds checking llvm-svn: 157255
Diffstat (limited to 'llvm/test/Transforms/SimplifyLibCalls')
-rw-r--r--llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll4
-rw-r--r--llvm/test/Transforms/SimplifyLibCalls/StrCpy.ll4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll b/llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll
index 738db373a5f..914b0955bc9 100644
--- a/llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll
+++ b/llvm/test/Transforms/SimplifyLibCalls/StpCpy.ll
@@ -11,7 +11,7 @@ declare i8* @stpcpy(i8*, i8*)
declare i8* @__stpcpy_chk(i8*, i8*, i32) nounwind
-declare i32 @llvm.objectsize.i32(i8*, i1, i32) nounwind readonly
+declare i32 @llvm.objectsize.i32(i8*, i1) nounwind readonly
define i32 @t1() {
; CHECK: @t1
@@ -28,7 +28,7 @@ define i32 @t2() {
%target = alloca [1024 x i8]
%arg1 = getelementptr [1024 x i8]* %target, i32 0, i32 0
%arg2 = getelementptr [6 x i8]* @hello, i32 0, i32 0
- %tmp1 = call i32 @llvm.objectsize.i32(i8* %arg1, i1 false, i32 0)
+ %tmp1 = call i32 @llvm.objectsize.i32(i8* %arg1, i1 false)
%rslt1 = call i8* @__stpcpy_chk(i8* %arg1, i8* %arg2, i32 %tmp1)
; CHECK: @__memcpy_chk
ret i32 0
diff --git a/llvm/test/Transforms/SimplifyLibCalls/StrCpy.ll b/llvm/test/Transforms/SimplifyLibCalls/StrCpy.ll
index 90611ee0029..83406ff8f86 100644
--- a/llvm/test/Transforms/SimplifyLibCalls/StrCpy.ll
+++ b/llvm/test/Transforms/SimplifyLibCalls/StrCpy.ll
@@ -11,7 +11,7 @@ declare i8* @strcpy(i8*, i8*)
declare i8* @__strcpy_chk(i8*, i8*, i32) nounwind
-declare i32 @llvm.objectsize.i32(i8*, i1, i32) nounwind readonly
+declare i32 @llvm.objectsize.i32(i8*, i1) nounwind readonly
; rdar://6839935
@@ -30,7 +30,7 @@ define i32 @t2() {
%target = alloca [1024 x i8]
%arg1 = getelementptr [1024 x i8]* %target, i32 0, i32 0
%arg2 = getelementptr [6 x i8]* @hello, i32 0, i32 0
- %tmp1 = call i32 @llvm.objectsize.i32(i8* %arg1, i1 false, i32 0)
+ %tmp1 = call i32 @llvm.objectsize.i32(i8* %arg1, i1 false)
%rslt1 = call i8* @__strcpy_chk(i8* %arg1, i8* %arg2, i32 %tmp1)
; CHECK: @__memcpy_chk
ret i32 0
OpenPOWER on IntegriCloud