Files
rust/library/std/src
bors 6cdd42f9f8 Auto merge of #88988 - Mark-Simulacrum:avoid-into-ok, r=nagisa
Avoid codegen for Result::into_ok in lang_start

This extra codegen seems to be the cause for the regressions in max-rss on #86034. While LLVM will certainly optimize the dead code away, avoiding it's generation in the first place seems good, particularly when it is so simple.

#86034 produced this [diff](https://gist.github.com/Mark-Simulacrum/95c7599883093af3b960c35ffadf4dab#file-86034-diff) for a simple `fn main() {}`. With this PR, that diff [becomes limited to just a few extra IR instructions](https://gist.github.com/Mark-Simulacrum/95c7599883093af3b960c35ffadf4dab#file-88988-from-pre-diff) -- no extra functions.

Note that these are pre-optimization; LLVM surely will eliminate this during optimization. However, that optimization can end up generating more work and bump memory usage, and this eliminates that.
2021-09-18 09:15:40 +00:00
..
2021-06-13 14:00:15 -04:00
2021-06-13 14:00:15 -04:00
2021-02-06 13:05:56 +01:00
2021-05-19 15:52:09 +02:00
2020-09-02 17:37:40 -04:00
2021-09-16 14:51:14 +03:00
2021-08-17 07:15:54 +00:00
2021-08-01 11:19:24 -04:00
2021-09-08 20:51:05 -04:00