commit | a4c540d4fc7bb0f42c91a119aee542d939295db8 | [log] [tgz] |
---|---|---|
author | Easwaran Raman <eraman@google.com> | Sat Jan 05 02:26:29 2019 +0000 |
committer | Easwaran Raman <eraman@google.com> | Sat Jan 05 02:26:29 2019 +0000 |
tree | 97574f06370cafbbd71701ee4b27fc0d5d8bbda2 | |
parent | f33ed6da0013b924f1a20fc06a23ccfa96857f4d [diff] |
[Inliner] Optimize shouldBeDeferred 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350456 91177308-0d34-0410-b5e6-96231b3b80d8