-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 73f280a
authored
Unrolled build for #142854
Rollup merge of #142854 - folkertdev:centralize-min-function-alignment, r=workingjubilee
centralize `-Zmin-function-alignment` logic
tracking issue: #82232
discussed in: #142824 (comment)
Apply the `-Zmin-function-alignment` value to the alignment field of the function attributes when those are created, so that individual backends don't need to consider it.
The one exception right now is cranelift, because it can't yet set the alignment for individual functions, but it can (and does) set the global minimum function alignment.
cc ``@RalfJung`` I think this is an improvement regardless, is there anything else that should be done for miri?File tree
4 files changed
+10
-17
lines changed- compiler
- rustc_codegen_llvm/src
- rustc_codegen_ssa/src
- mir
- rustc_const_eval/src/interpret
4 files changed
+10
-17
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
494 | - | ||
495 | - | ||
496 | - | ||
497 | - | ||
498 | - | ||
494 | + | ||
499 | 495 |
| |
500 | 496 |
| |
501 | 497 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
129 | 135 |
| |
130 | 136 |
| |
131 | 137 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 | - | ||
135 | - | ||
136 | - | ||
137 | - | ||
138 | - | ||
139 | - | ||
134 | + | ||
135 | + | ||
140 | 136 |
| |
141 | 137 |
| |
142 | 138 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
877 | 877 |
| |
878 | 878 |
| |
879 | 879 |
| |
880 | - | ||
881 | - | ||
882 | - | ||
883 | - | ||
884 | - | ||
885 | - | ||
880 | + | ||
886 | 881 |
| |
887 | 882 |
| |
888 | 883 |
| |
|
0 commit comments