diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-09 15:52:43 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-09 15:52:43 +0000 |
commit | 30759542aa820b9fc74c77bfa3c011cb0a106ef9 (patch) | |
tree | 9698461a0cd7c16beea9446415a512f3e3bcde0e /test/Transforms/SimplifyLibCalls/StrCpy.ll | |
parent | 80fa4723b9b7cb9d78d71648095e4e2804681402 (diff) | |
download | external_llvm-30759542aa820b9fc74c77bfa3c011cb0a106ef9.tar.gz external_llvm-30759542aa820b9fc74c77bfa3c011cb0a106ef9.tar.bz2 external_llvm-30759542aa820b9fc74c77bfa3c011cb0a106ef9.zip |
change the objectsize intrinsic signature: add a 3rd parameter to denote the maximum runtime performance penalty that the user is willing to accept.
This commit only adds the parameter. Code taking advantage of it will follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/StrCpy.ll')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/StrCpy.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/SimplifyLibCalls/StrCpy.ll b/test/Transforms/SimplifyLibCalls/StrCpy.ll index 83406ff8f8..90611ee002 100644 --- a/test/Transforms/SimplifyLibCalls/StrCpy.ll +++ b/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) nounwind readonly +declare i32 @llvm.objectsize.i32(i8*, i1, i32) 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) + %tmp1 = call i32 @llvm.objectsize.i32(i8* %arg1, i1 false, i32 0) %rslt1 = call i8* @__strcpy_chk(i8* %arg1, i8* %arg2, i32 %tmp1) ; CHECK: @__memcpy_chk ret i32 0 |