Commit d4ddf06
authored
[NFCI]Remove EntryCount from FunctionSummary and clean up surrounding synthetic count passes. (llvm#107471)
The primary motivation is to remove `EntryCount` from `FunctionSummary`.
This frees 8 bytes out of `sizeof(FunctionSummary)` (136 bytes as of
llvm@64498c5).
While I'm at it, this PR clean up {SummaryBasedOptimizations,
SyntheticCountsPropagation} since they were not used and there are no
plans to further invest on them.
With this patch, bitcode writer writes a placeholder 0 at the byte
offset of `EntryCount` and bitcode reader can parse the function entry
count at the correct byte offset. Added a TODO to stop writing
`EntryCount` and bump bitcode version1 parent 3a13c5a commit d4ddf06
File tree
27 files changed
+23
-567
lines changed- clang/docs/tools
- llvm
- include/llvm
- IR
- LTO
- Transforms/IPO
- lib
- Analysis
- AsmParser
- Bitcode
- Reader
- Writer
- IR
- LTO
- Passes
- Transforms
- IPO
- Utils
- test
- Bitcode
- ThinLTO/X86
- Transforms/SyntheticCountsPropagation
- utils/gn/secondary/llvm/lib
- LTO
- Transforms/IPO
27 files changed
+23
-567
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5349 | 5349 | | |
5350 | 5350 | | |
5351 | 5351 | | |
5352 | | - | |
5353 | 5352 | | |
5354 | 5353 | | |
5355 | 5354 | | |
| |||
5586 | 5585 | | |
5587 | 5586 | | |
5588 | 5587 | | |
5589 | | - | |
5590 | 5588 | | |
5591 | 5589 | | |
5592 | 5590 | | |
| |||
6070 | 6068 | | |
6071 | 6069 | | |
6072 | 6070 | | |
6073 | | - | |
6074 | 6071 | | |
6075 | 6072 | | |
6076 | 6073 | | |
| |||
6861 | 6858 | | |
6862 | 6859 | | |
6863 | 6860 | | |
6864 | | - | |
6865 | 6861 | | |
6866 | 6862 | | |
6867 | 6863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
862 | | - | |
863 | | - | |
| 861 | + | |
| 862 | + | |
864 | 863 | | |
865 | 864 | | |
866 | 865 | | |
| |||
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 882 | | |
889 | 883 | | |
890 | 884 | | |
| |||
915 | 909 | | |
916 | 910 | | |
917 | 911 | | |
918 | | - | |
| 912 | + | |
919 | 913 | | |
920 | 914 | | |
921 | 915 | | |
| |||
925 | 919 | | |
926 | 920 | | |
927 | 921 | | |
928 | | - | |
| 922 | + | |
929 | 923 | | |
930 | 924 | | |
931 | 925 | | |
| |||
960 | 954 | | |
961 | 955 | | |
962 | 956 | | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | 957 | | |
970 | 958 | | |
971 | 959 | | |
| |||
1587 | 1575 | | |
1588 | 1576 | | |
1589 | 1577 | | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | 1578 | | |
1594 | 1579 | | |
1595 | 1580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 23 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
678 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
| 966 | + | |
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9453 | 9453 | | |
9454 | 9454 | | |
9455 | 9455 | | |
9456 | | - | |
9457 | | - | |
| 9456 | + | |
| 9457 | + | |
9458 | 9458 | | |
9459 | 9459 | | |
9460 | 9460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7686 | 7686 | | |
7687 | 7687 | | |
7688 | 7688 | | |
7689 | | - | |
7690 | | - | |
| 7689 | + | |
| 7690 | + | |
7691 | 7691 | | |
7692 | 7692 | | |
7693 | 7693 | | |
| |||
7832 | 7832 | | |
7833 | 7833 | | |
7834 | 7834 | | |
7835 | | - | |
7836 | | - | |
| 7835 | + | |
| 7836 | + | |
7837 | 7837 | | |
7838 | 7838 | | |
7839 | 7839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4740 | 4740 | | |
4741 | 4741 | | |
4742 | 4742 | | |
4743 | | - | |
| 4743 | + | |
| 4744 | + | |
4744 | 4745 | | |
4745 | 4746 | | |
4746 | 4747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 126 | + | |
131 | 127 | | |
132 | 128 | | |
133 | 129 | | |
| |||
0 commit comments