freebsd-dev/contrib/llvm/lib/Analysis
Dimitry Andric 04a978f91b 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
..
IPA Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
AliasAnalysis.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
AliasAnalysisCounter.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
AliasAnalysisEvaluator.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
AliasDebugger.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
AliasSetTracker.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
Analysis.cpp Upgrade our copy of llvm/clang to r142614, from upstream's release_30 2011-10-22 14:08:43 +00:00
BasicAliasAnalysis.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
BlockFrequencyInfo.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
BranchProbabilityInfo.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
CaptureTracking.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
CFGPrinter.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
CodeMetrics.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ConstantFolding.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
DbgInfoPrinter.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
DominanceFrontier.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
DomPrinter.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
InlineCost.cpp Pull in r165367 from upstream llvm trunk: 2012-10-24 16:39:49 +00:00
InstCount.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
InstructionSimplify.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
Interval.cpp
IntervalPartition.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
IVUsers.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
LazyValueInfo.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
LibCallAliasAnalysis.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
LibCallSemantics.cpp Upgrade our Clang in base to r114020, from upstream's release_28 branch. 2010-09-20 16:43:17 +00:00
Lint.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
Loads.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
LoopDependenceAnalysis.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
LoopInfo.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
LoopPass.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
MemDepPrinter.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
MemoryBuiltins.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
MemoryDependenceAnalysis.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ModuleDebugInfoPrinter.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
NoAliasAnalysis.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
PathNumbering.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
PathProfileInfo.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
PathProfileVerifier.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
PHITransAddr.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
PostDominators.cpp Upgrade our copy of llvm/clang to r130700, from upstream's trunk. 2011-05-02 21:04:37 +00:00
ProfileEstimatorPass.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
ProfileInfo.cpp Upgrade our copy of llvm/clang to r130700, from upstream's trunk. 2011-05-02 21:04:37 +00:00
ProfileInfoLoader.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ProfileInfoLoaderPass.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ProfileVerifierPass.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
RegionInfo.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
RegionPass.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
RegionPrinter.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ScalarEvolution.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ScalarEvolutionAliasAnalysis.cpp Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
ScalarEvolutionExpander.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00
ScalarEvolutionNormalization.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
SparsePropagation.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
Trace.cpp Upgrade our copy of llvm/clang to trunk r154661, in preparation of the 2012-04-16 21:23:25 +00:00
TypeBasedAliasAnalysis.cpp Upgrade our copy of llvm/clang to r130700, from upstream's trunk. 2011-05-02 21:04:37 +00:00
ValueTracking.cpp Upgrade our copy of llvm/clang to trunk r162107. With thanks to 2012-08-20 18:33:03 +00:00