diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-08-18 16:04:00 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-08-18 16:04:00 -0700 |
| commit | 8118a31e86ac0f468e47a3ba794b01c8e36db25d (patch) | |
| tree | 463c2847a653699eafbfd7a04158a391af31993d /compiler/rustc_codegen_llvm/src | |
| parent | 76c427d6e20c2942716de9932be4215771aeb4b1 (diff) | |
| download | rust-8118a31e86ac0f468e47a3ba794b01c8e36db25d.tar.gz rust-8118a31e86ac0f468e47a3ba794b01c8e36db25d.zip | |
Inline `<T as From<T>>::from`
I noticed in the MIR for <https://play.rust-lang.org/?version=nightly&mode=release&edition=2021&gist=67097e0494363ee27421a4e3bdfaf513> that it's inlined most stuff ``` scope 5 (inlined <Result<i32, u32> as Try>::branch) ``` ``` scope 8 (inlined <Result<i32, u32> as Try>::from_output) ``` But yet the do-nothing `from` call was still there: ``` _17 = <u32 as From<u32>>::from(move _18) -> bb9; ``` So let's give this a try and see what perf has to say.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
