Commit ad626f9
committed
[Stdlib performance] Make integer conversion operations transparent
The integer conversion operations were inlinable, but aren't getting
inlined in debug builds, which results in unreasonably poor
performance. Mark them as transparent so we don't end up with
unspecialized generic code in the hot path.
Fixes swiftlang#785011 parent cbf804e commit ad626f9
File tree
2 files changed
+30
-8
lines changed- stdlib/public/core
- test/IRGen
2 files changed
+30
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3040 | 3040 | | |
3041 | 3041 | | |
3042 | 3042 | | |
3043 | | - | |
3044 | | - | |
| 3043 | + | |
3045 | 3044 | | |
3046 | 3045 | | |
3047 | 3046 | | |
| |||
3056 | 3055 | | |
3057 | 3056 | | |
3058 | 3057 | | |
3059 | | - | |
3060 | | - | |
| 3058 | + | |
3061 | 3059 | | |
3062 | 3060 | | |
3063 | 3061 | | |
| |||
3255 | 3253 | | |
3256 | 3254 | | |
3257 | 3255 | | |
3258 | | - | |
3259 | | - | |
| 3256 | + | |
3260 | 3257 | | |
3261 | 3258 | | |
3262 | 3259 | | |
| |||
3273 | 3270 | | |
3274 | 3271 | | |
3275 | 3272 | | |
3276 | | - | |
3277 | | - | |
| 3273 | + | |
3278 | 3274 | | |
3279 | 3275 | | |
3280 | 3276 | | |
| |||
| 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 | + | |
0 commit comments