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)
commitd0ffdf87820a05d5aa2677072a1f940b385f62ac
tree0de6300c213d3867e6694f061eceb62e857cab56
parenta01246b7a79fc9b3a5bee9e324181b405f0cb288
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.

llvm-svn: 349558
llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
llvm/test/Transforms/PreISelIntrinsicLowering/objc-arc.ll