]> git.lizzy.rs Git - rust.git/commit
Don't copy ByRef passed types to local stack slot when not necessary
authorbjorn3 <bjorn3@users.noreply.github.com>
Fri, 30 Aug 2019 13:41:33 +0000 (15:41 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 30 Aug 2019 13:42:07 +0000 (15:42 +0200)
commit15b9834d7d37d601fd77db11f8852f9ceb0804d0
tree88cbecfbdd562beb49c4ea8f8fb978b2d97d5eb9
parent76d2e085db71370cb34fc12fc544f46e557e743d
Don't copy ByRef passed types to local stack slot when not necessary

Eg when the local is immutable **and** the type is freeze.

This makes the simple raytracer runtime benchmark 1% faster than cg_llvm
without optimizations. Before it was 2% slower.

cc #691
cc #684
example/example.rs
src/abi/comments.rs
src/abi/mod.rs
src/value_and_place.rs