diff options
author | David Callahan <dcallahan@fb.com> | 2019-01-15 17:45:54 +0000 |
---|---|---|
committer | David Callahan <dcallahan@fb.com> | 2019-01-15 17:45:54 +0000 |
commit | dee001207e0985d9ad17fee765fc32b6ad4fa1e3 (patch) | |
tree | a4cdee4b4a56425910b55279d108dbfe9bab5883 /clang/lib/Sema/SemaDecl.cpp | |
parent | 9c538908336344c6c36944e9228ffc5a6dc1f5ff (diff) | |
download | bcm5719-llvm-dee001207e0985d9ad17fee765fc32b6ad4fa1e3.tar.gz bcm5719-llvm-dee001207e0985d9ad17fee765fc32b6ad4fa1e3.zip |
We can improve the performance (generally) by memo-izing the action to map a debug location to its function summary.
Summary:
Here are timings (as reported by "opt -time-passes") for
sample-profile pass for some files holding hot functions from a major
service©r. Average 17% reduction. Delta column is 100*(old-new)/old.
```
Old New Delta
0.0537 0.0538 -0.2%
0.8155 0.6522 20.0%
0.0779 0.0751 3.6%
0.0727 0.0913 -25.6%
0.1622 0.1302 19.7%
0.0627 0.0594 5.3%
0.0766 0.0744 2.9%
0.6426 0.4387 31.7%
0.3521 0.2776 21.2%
0.3549 0.2721 23.3%
0.0912 0.0904 0.9%
0.1236 0.1059 14.3%
0.0854 0.0866 -1.4%
0.0757 0.0722 4.6%
0.1293 0.1147 11.3%
0.1354 0.1122 17.1%
0.0767 0.0770 -0.4%
0.1135 0.0968 14.7%
0.0524 0.0608 -16.0%
0.1279 0.1106 13.5%
==========
3.6820 3.0520 17.1% Total
```
Reviewers: twoh, Kader, danielcdh, wmi
Reviewed By: wmi
Subscribers: dblaikie, llvm-commits
Differential Revision: https://reviews.llvm.org/D56435
llvm-svn: 351211
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions