]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #57677 - dotdash:locals, r=michaelwoerister
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 22 Jan 2019 11:20:31 +0000 (12:20 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Jan 2019 11:20:31 +0000 (12:20 +0100)
commit973e754fc4d31fdcd97647aaca7c2419050df393
treedc94ff88875a1aa61d3944fd2ba00c78ea1660da
parent7fb44e860430286e22f9f77b9963ff0f0622d01a
parent98d4f33626c4a18092cd015b4e1cc15381989677
Rollup merge of #57677 - dotdash:locals, r=michaelwoerister

const_eval: Predetermine the layout of all locals when pushing a stack frame

Usually the layout of any locals is required at least three times, once
when it becomes live, once when it is written to, and once it is read
from. By adding a cache for them, we can reduce the number of layout
queries speeding up code that is heavy on const_eval.