HomePhabricator

[CodeGenObjC] Emit [[X alloc] init] as objc_alloc_init(X) when available

Authored by erik.pilkington on Feb 14 2019, 11:58 AM.

Description

[CodeGenObjC] Emit [[X alloc] init] as objc_alloc_init(X) when available

This provides a code size win on the caller side, since the init
message send is done in the runtime function.

rdar://44987038

Differential revision: https://reviews.llvm.org/D57936

llvm-svn: 354056