Inline a function when the always_inline attribute
authorGerolf Hoflehner <ghoflehner@apple.com>
Thu, 17 Apr 2014 00:21:52 +0000 (00:21 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Thu, 17 Apr 2014 00:21:52 +0000 (00:21 +0000)
commitd6312bbbbd7739c8bfd8cc1ddad7662b1c6ee158
tree537b7157c9c541f592812566704d12cc0113b2ce
parent0fa7dc4762d6fe0ab811f86e5d2c87231f2abcfe
Inline a function when the always_inline attribute
is set even when it contains a indirect branch.
The attribute overrules correctness concerns
like the escape of a local block address.

This is for rdar://16501761

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206429 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IPA/InlineCost.cpp
test/Transforms/Inline/always-inline-attribute.ll [new file with mode: 0644]
test/Transforms/Inline/always-inline.ll