[PATCH] D118416: [Metadata] Use temporary MD nodes when appending module flags during module linking

Wolfgang Pieb via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 17:08:28 PDT 2022


wolfgangp added a comment.

This is a breakdown of MDNodes by number of operands using a bootstrap and a couple of other internal builds (-g -O2). The second column gives the percentage of MDnodes with the number of operands in the first column. 
99.9 percent of all nodes have 15 operands or fewer. Almost half have 2 operands.

| Operands | Pct  | Cumulative |
| 0        | 3.7  | 3.7        |
| 1        | 20.2 | 23.8       |
| 2        | 47.0 | 70.8       |
| 3        | 2.8  | 73.6       |
| 4        | 5.6  | 79.2       |
| 5        | 4.2  | 83.5       |
| 6        | 8.9  | 92.3       |
| 7        | 0.1  | 92.4       |
| 8        | 5.2  | 97.6       |
| 9-15     | 2.3  | 99.9       |
| 16-31    | 0.1  | 100.0      |
| 32-64    | 0.0  | 100.0      |
| > 64     | 0.0  | 100.0      |


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118416/new/

https://reviews.llvm.org/D118416



More information about the llvm-commits mailing list