Commit 301e321
committed
[llvm-tblgen] Increase Coverage Index Size
The tablegen backend for DAGISel can, using the `-instrument-coverage`
option, save information about which patterns are used. This saves an
index into two tables, one that contains a string dump of the pattern,
and another that contains the path the pattern came from.
Before this change, these indexes were an unsigned 16-bit value.
The RISC-V backend, however, goes beyond this limit. This change
increases the indexes to be represented by a 32-bit unsigned value.
`-instrument-coverage` is not enabled by default, so this should have
minimal effect on the default configuration's code size. This is partly
why I also just chose to double the size (from 16-bit to 32-bit) rather
than going to 24-bit. Hopefully this size will never need to be changed
again.
Fixes #1182591 parent bbea1de commit 301e321
File tree
4 files changed
+44
-6
lines changed- llvm
- include/llvm/CodeGen
- lib/CodeGen/SelectionDAG
- test/TableGen
- utils/TableGen
4 files changed
+44
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
| 4048 | + | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | 4052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
| 384 | + | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
| 1063 | + | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
| 1396 | + | |
| 1397 | + | |
1397 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
1398 | 1401 | | |
1399 | 1402 | | |
1400 | 1403 | | |
1401 | 1404 | | |
1402 | 1405 | | |
1403 | 1406 | | |
1404 | 1407 | | |
| 1408 | + | |
1405 | 1409 | | |
1406 | 1410 | | |
1407 | 1411 | | |
| |||
0 commit comments