Matthias Krüger
a2ae171b97
Rollup merge of #140485 - Jarcho:from_expansion_opt, r=petrochenkov
...
Optimize the codegen for `Span::from_expansion`
See https://godbolt.org/z/bq65Y6bc4 for the difference. the new version is less than half the number of instructions.
Also tried fully writing the function by hand:
```rust
sp.ctxt_or_parent_or_marker != 0
&& (
sp.len_with_tag_or_marker == BASE_LEN_INTERNED_MARKER
|| sp.len_with_tag_or_marker & PARENT_TAG == 0
)
```
But that was no better than this PR's current use of `match_span_kind`.
2025-05-02 19:37:56 +02:00
..
2025-04-19 01:13:18 +00:00
2025-04-30 10:36:03 +03:00
2025-05-02 22:16:58 +10:00
2025-04-23 16:40:30 +02:00
2025-05-02 22:16:57 +10:00
2025-04-23 16:40:30 +02:00
2025-04-30 07:10:56 +10:00
2025-05-01 16:04:19 +00:00
2025-04-30 10:18:26 +02:00
2025-04-30 17:27:57 +02:00
2025-04-30 17:27:57 +02:00
2025-05-01 22:27:23 +02:00
2025-05-01 11:57:11 +00:00
2025-05-01 11:55:23 +02:00
2025-05-01 16:04:19 +00:00
2025-04-23 16:40:30 +02:00
2025-05-01 22:27:19 +02:00
2025-04-23 16:40:30 +02:00
2025-04-30 17:28:00 +02:00
2025-04-28 23:29:17 +00:00
2025-04-25 11:28:36 +00:00
2025-05-02 08:26:39 +10:00
2025-04-29 12:28:22 -04:00
2025-04-30 10:18:26 +02:00
2025-04-30 22:36:41 +02:00
2025-04-17 09:50:52 +10:00
2025-04-15 10:44:28 -04:00
2025-04-28 13:30:45 +02:00
2025-05-01 04:11:52 +00:00
2025-05-02 22:16:57 +10:00
2025-04-26 14:08:58 -07:00
2025-04-29 12:28:24 -04:00
2025-04-29 20:48:51 +10:00
2025-04-26 07:13:07 +02:00
2025-05-01 04:11:52 +00:00
2025-04-28 23:29:15 +00:00
2025-04-28 16:23:13 +07:00
2025-04-30 22:36:39 +02:00
2025-04-28 16:23:13 +07:00
2025-04-29 10:39:54 +00:00
2025-04-30 22:36:44 +02:00
2025-05-01 16:26:26 +02:00
2025-04-23 16:40:30 +02:00
2025-04-28 13:30:45 +02:00
2025-05-01 04:11:52 +00:00
2025-04-29 12:04:33 +02:00
2025-04-30 00:09:21 +00:00
2025-04-23 16:40:30 +02:00
2025-04-25 07:14:27 +02:00
2025-04-28 23:29:17 +00:00
2025-04-29 12:28:22 -04:00
2025-05-02 19:37:56 +02:00
2025-04-29 12:28:22 -04:00
2025-05-02 22:17:03 +10:00
2025-04-30 22:36:41 +02:00
2025-04-24 11:59:20 +01:00
2025-04-30 12:06:14 +02:00
2025-04-29 12:28:22 -04:00
2025-04-29 23:17:31 +00:00
2025-04-15 18:30:35 +00:00