Skip to content
  • Easwaran Raman's avatar
    [Inliner] Optimize shouldBeDeferred · 366a873f
    Easwaran Raman authored
    This has some minor optimizations to shouldBeDeferred. This is not
    strictly NFC because the early exit inside the loop assumes
    TotalSecondaryCost is monotonically non-decreasing, which is not true if
    the threshold used by CostAnalyzer is negative. AFAICT the thresholds do
    not go below 0 for the default values of the various options we use.
    
    llvm-svn: 350456
    366a873f
Loading