Commit b31c1ca
committed
[BOLT] Never emit "large" functions
"Large" functions are functions that are too big to fit into their
original slots after code modifications. CheckLargeFunctions pass is
designed to prevent such functions from emission. Extend this pass to
work with functions with constant islands.
Now that CheckLargeFunctions covers all functions, it guarantees that we
will never see such functions after code emission on all platforms
(previously it was guaranteed on x86 only). Hence, we can get rid of
RewriteInstance extensions that were meant to support "large" functions.1 parent d922045 commit b31c1ca
File tree
6 files changed
+30
-55
lines changed- bolt
- include/bolt
- Core
- Rewrite
- lib
- Core
- Passes
- Rewrite
6 files changed
+30
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | 559 | | |
568 | 560 | | |
569 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
| |||
689 | 686 | | |
690 | 687 | | |
691 | 688 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
| 689 | + | |
699 | 690 | | |
700 | 691 | | |
701 | 692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
592 | 599 | | |
593 | | - | |
594 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
595 | 603 | | |
596 | 604 | | |
597 | 605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3807 | 3807 | | |
3808 | 3808 | | |
3809 | 3809 | | |
3810 | | - | |
3811 | 3810 | | |
3812 | 3811 | | |
3813 | 3812 | | |
| |||
3818 | 3817 | | |
3819 | 3818 | | |
3820 | 3819 | | |
3821 | | - | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
| 3820 | + | |
| 3821 | + | |
3826 | 3822 | | |
3827 | 3823 | | |
3828 | 3824 | | |
| |||
3852 | 3848 | | |
3853 | 3849 | | |
3854 | 3850 | | |
3855 | | - | |
3856 | | - | |
3857 | | - | |
3858 | | - | |
3859 | | - | |
3860 | | - | |
3861 | | - | |
3862 | | - | |
3863 | | - | |
3864 | | - | |
3865 | | - | |
3866 | | - | |
3867 | | - | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
3868 | 3856 | | |
3869 | 3857 | | |
3870 | 3858 | | |
3871 | 3859 | | |
3872 | 3860 | | |
3873 | 3861 | | |
3874 | 3862 | | |
3875 | | - | |
3876 | | - | |
3877 | | - | |
3878 | 3863 | | |
3879 | 3864 | | |
3880 | 3865 | | |
| |||
5814 | 5799 | | |
5815 | 5800 | | |
5816 | 5801 | | |
5817 | | - | |
| 5802 | + | |
5818 | 5803 | | |
5819 | 5804 | | |
5820 | 5805 | | |
| |||
0 commit comments