Commit 0f0eb32
Caching layout struct types
LdStCombine is a function pass. Previously, the newly-created layout
struct types are searched by invoking Module's getIdentifiedStructTypes(),
so that struct types, created from the previous functions, can be reused
whenever possible.
But getIdentifiedStructTypes() is costly. Thus, there, we caching struct
types in codegencontext for reuse.
(cherry picked from commit de5dc9e)1 parent a8c3402 commit 0f0eb32
2 files changed
+9
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2573 | 2573 | | |
2574 | 2574 | | |
2575 | 2575 | | |
2576 | | - | |
2577 | | - | |
2578 | 2576 | | |
2579 | 2577 | | |
2580 | 2578 | | |
| |||
2588 | 2586 | | |
2589 | 2587 | | |
2590 | 2588 | | |
2591 | | - | |
2592 | 2589 | | |
2593 | 2590 | | |
2594 | 2591 | | |
| |||
2773 | 2770 | | |
2774 | 2771 | | |
2775 | 2772 | | |
2776 | | - | |
2777 | | - | |
2778 | 2773 | | |
2779 | 2774 | | |
2780 | 2775 | | |
| |||
3397 | 3392 | | |
3398 | 3393 | | |
3399 | 3394 | | |
3400 | | - | |
3401 | | - | |
3402 | | - | |
3403 | | - | |
3404 | | - | |
3405 | | - | |
3406 | | - | |
3407 | | - | |
3408 | | - | |
3409 | | - | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | | - | |
3414 | | - | |
3415 | | - | |
3416 | | - | |
3417 | 3395 | | |
3418 | 3396 | | |
3419 | 3397 | | |
| |||
3422 | 3400 | | |
3423 | 3401 | | |
3424 | 3402 | | |
3425 | | - | |
| 3403 | + | |
| 3404 | + | |
3426 | 3405 | | |
3427 | 3406 | | |
3428 | 3407 | | |
| |||
3434 | 3413 | | |
3435 | 3414 | | |
3436 | 3415 | | |
3437 | | - | |
| 3416 | + | |
3438 | 3417 | | |
3439 | 3418 | | |
3440 | 3419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
| 853 | + | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| |||
1101 | 1103 | | |
1102 | 1104 | | |
1103 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1104 | 1110 | | |
1105 | 1111 | | |
1106 | 1112 | | |
| |||
0 commit comments