dim fa013d1554 Pull in r165367 from upstream llvm trunk:
Make sure always-inline functions get inlined. <rdar://problem/12423986>

  Without this change, when the estimated cost for inlining a function with
  an "alwaysinline" attribute was lower than the inlining threshold, the
  getInlineCost function was returning that estimated cost rather than the
  special InlineCost::AlwaysInlineCost value. That is fine in the normal
  inlining case, but it can fail when the inliner considers the opportunity
  cost of inlining into an internal or linkonce-odr function. It may decide
  not to inline the always-inline function in that case. The fix here is just
  to make getInlineCost always return the special value for always-inline
  functions. I ran into this building clang with libc++. Tablegen failed to
  link because of an always-inline function that was not inlined. I have been
  unable to reduce the testcase down to a reasonable size.

This should fix the link errors that were reported when atf-run was
compiled with clang -stdlib=libc++.  In this case, at -O3 optimization,
some calls to basic_ios::clear() were not inlined, even when the
function was marked __always_inline__.

Reported by:	Jan Beich <jbeich@tormail.org>
MFC after:	1 week
2012-10-24 16:39:49 +00:00
..
2012-10-10 19:47:52 +00:00
2012-09-14 21:17:53 +00:00
2012-08-08 09:42:44 +00:00
2012-08-15 03:21:56 +00:00
2011-12-13 17:34:47 +00:00
2012-09-22 17:47:37 +00:00
2012-07-24 01:09:11 +00:00
2012-10-05 18:42:50 +00:00
2012-10-22 18:56:31 +00:00
2012-03-12 01:06:29 +00:00
2012-10-05 20:19:28 +00:00
2012-02-22 03:36:15 +00:00
2011-12-08 02:40:46 +00:00
2012-10-22 10:20:11 +00:00