about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2022-08-18 16:04:00 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2022-08-18 16:04:00 -0700
commit8118a31e86ac0f468e47a3ba794b01c8e36db25d (patch)
tree463c2847a653699eafbfd7a04158a391af31993d /compiler/rustc_codegen_llvm/src
parent76c427d6e20c2942716de9932be4215771aeb4b1 (diff)
downloadrust-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