diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-10 20:18:21 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-10 20:18:21 +0000 |
| commit | f10061ec708ef787398649f3eb073c6ca3acd73d (patch) | |
| tree | 5949d7ce9679b7e663a7f4fad605cddae4c5199c /llvm/test/Transforms/InstCombine/malloc-free-delete.ll | |
| parent | 324c99dee5096be095adc3972c4a512ca0f74090 (diff) | |
| download | bcm5719-llvm-f10061ec708ef787398649f3eb073c6ca3acd73d.tar.gz bcm5719-llvm-f10061ec708ef787398649f3eb073c6ca3acd73d.zip | |
Add address space mangling to lifetime intrinsics
In preparation for allowing allocas to have non-0 addrspace.
llvm-svn: 299876
Diffstat (limited to 'llvm/test/Transforms/InstCombine/malloc-free-delete.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/malloc-free-delete.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/malloc-free-delete.ll b/llvm/test/Transforms/InstCombine/malloc-free-delete.ll index 8fcb8214360..7a5c7457e36 100644 --- a/llvm/test/Transforms/InstCombine/malloc-free-delete.ll +++ b/llvm/test/Transforms/InstCombine/malloc-free-delete.ll @@ -24,8 +24,8 @@ define i1 @foo() { ret i1 %z } -declare void @llvm.lifetime.start(i64, i8*) -declare void @llvm.lifetime.end(i64, i8*) +declare void @llvm.lifetime.start.p0i8(i64, i8*) +declare void @llvm.lifetime.end.p0i8(i64, i8*) declare i64 @llvm.objectsize.i64(i8*, i1) declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind declare void @llvm.memmove.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind @@ -35,8 +35,8 @@ define void @test3(i8* %src) { ; CHECK-LABEL: @test3( ; CHECK-NEXT: ret void %a = call noalias i8* @malloc(i32 10) - call void @llvm.lifetime.start(i64 10, i8* %a) - call void @llvm.lifetime.end(i64 10, i8* %a) + call void @llvm.lifetime.start.p0i8(i64 10, i8* %a) + call void @llvm.lifetime.end.p0i8(i64 10, i8* %a) %size = call i64 @llvm.objectsize.i64(i8* %a, i1 true) store i8 42, i8* %a call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %src, i32 32, i32 1, i1 false) |

