aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2019-01-05 02:26:29 +0000
committerEaswaran Raman <eraman@google.com>2019-01-05 02:26:29 +0000
commit366a873f144a065ef7ec1ec37d4bffdc55bb6baa (patch)
tree0e5415d17a2df6cc8b208186f90739914e3503e9 /clang/lib/CodeGen/CodeGenModule.cpp
parent45ec002e25318e8444b3301e94ed53f4cf1a3e79 (diff)
downloadllvm-366a873f144a065ef7ec1ec37d4bffdc55bb6baa.zip
llvm-366a873f144a065ef7ec1ec37d4bffdc55bb6baa.tar.gz
llvm-366a873f144a065ef7ec1ec37d4bffdc55bb6baa.tar.bz2
[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. llvm-svn: 350456
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions