diff options
author | Vedant Kumar <vsk@apple.com> | 2020-10-22 11:11:12 -0700 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-10-22 12:25:50 -0700 |
commit | 099bffe7f7df41d66195ce33e91888a4a16c6b4a (patch) | |
tree | ce2519a8347c1a4a09652b0bcf1ab2972c15d63b /llvm/test/Transforms/CodeExtractor | |
parent | 36ce915ac54a97d40c8e340afe7d46398d97b4ee (diff) | |
download | llvm-099bffe7f7df41d66195ce33e91888a4a16c6b4a.zip llvm-099bffe7f7df41d66195ce33e91888a4a16c6b4a.tar.gz llvm-099bffe7f7df41d66195ce33e91888a4a16c6b4a.tar.bz2 |
Revert "[CodeExtractor] Don't create bitcasts when inserting lifetime markers (NFCI)"
This reverts commit 26ee8aff2b85ee28a2b2d0b1860d878b512fbdef.
It's necessary to insert bitcast the pointer operand of a lifetime
marker if it has an opaque pointer type.
rdar://70560161
Diffstat (limited to 'llvm/test/Transforms/CodeExtractor')
-rw-r--r-- | llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll b/llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll index 3201357..2e0fbf6 100644 --- a/llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll +++ b/llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll @@ -26,10 +26,11 @@ bb5: ; preds = %bb4, %bb1, %bb ; CHECK-LABEL: bb: ; CHECK-NEXT: [[CALL26LOC:%.*]] = alloca i8* ; CHECK-LABEL: codeRepl.i: -; CHECK-NEXT: call void @llvm.lifetime.start.p0p0i8(i64 -1, i8** [[CALL26LOC]]) +; CHECK-NEXT: %lt.cast.i = bitcast i8** [[CALL26LOC]] to i8* +; CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 -1, i8* %lt.cast.i) ; CHECK-NEXT: call void @bar.1.bb1(i8** [[CALL26LOC]]) ; CHECK-NEXT: %call26.reload.i = load i8*, i8** [[CALL26LOC]] -; CHECK-NEXT: call void @llvm.lifetime.end.p0p0i8(i64 -1, i8** [[CALL26LOC]]) +; CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 -1, i8* %lt.cast.i) define i8* @dummy_caller(i32 %arg) { bb: %tmp = tail call i8* @bar(i32 %arg) |