]> granicus.if.org Git - llvm/commit
Add nonlazybind to objc_retain/objc_release when converting from intrinsics.
authorPete Cooper <peter_cooper@apple.com>
Tue, 18 Dec 2018 22:31:34 +0000 (22:31 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 18 Dec 2018 22:31:34 +0000 (22:31 +0000)
commitd2c49ab726c20fd51a2c3df4689636a56812c355
tree7b868a8433b2d941d1df228889db402844b9004e
parentefdc43373b87804857f4c43184f5b6824731d66a
Add nonlazybind to objc_retain/objc_release when converting from intrinsics.

For performance reasons, clang set nonlazybind on these functions.  Now that we
are using intrinsics instead of runtime calls, we should set this attribute when
creating the runtime functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349558 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PreISelIntrinsicLowering.cpp
test/Transforms/PreISelIntrinsicLowering/objc-arc.ll