mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
0cfa040973
the bitcode has the arm64 retainAutoreleasedReturnValue marker The ARC middle-end passes stopped optimizing or transforming bitcode that has been compiled with old compilers after we started emitting calls to ARC runtime functions as intrinsic calls instead of normal function calls in the front-end and made changes to teach the ARC middle-end passes about those intrinsics (see r349534). This patch converts calls to ARC runtime functions that are not intrinsic functions to intrinsic function calls if the bitcode has the arm64 retainAutoreleasedReturnValue marker. Checking for the presence of the marker is necessary to make sure we aren't changing ARC function calls that were originally MRR message sends (see r349952). rdar://problem/53280660 Differential Revision: https://reviews.llvm.org/D65902 llvm-svn: 368311
15 lines
382 B
LLVM
15 lines
382 B
LLVM
; Test upgrade of clang.arc.use by upgrading to llvm.objc.clang.arc.use.
|
|
; Bitcode input generated from llvm 6.0
|
|
|
|
; RUN: llvm-dis %s.bc -o - | FileCheck %s
|
|
|
|
%0 = type opaque
|
|
define void @foo() {
|
|
%1 = tail call %0* @foo0()
|
|
; CHECK: call void (...) @llvm.objc.clang.arc.use(
|
|
call void (...) @clang.arc.use(%0* %1)
|
|
ret void
|
|
}
|
|
declare %0* @foo0()
|
|
declare void @clang.arc.use(...)
|