]> git.lizzy.rs Git - rust.git/commit
Implement filling drop in MIR
authorSimonas Kazlauskas <git@kazlauskas.me>
Thu, 4 Feb 2016 17:40:28 +0000 (19:40 +0200)
committerSimonas Kazlauskas <git@kazlauskas.me>
Wed, 24 Feb 2016 19:05:21 +0000 (21:05 +0200)
commitba26efb60c9e11ab058a1c31b9816147c55ab417
tree37cfc6ce05c69908fe02a37515185c79a9248d1b
parentbe7196a793a185355efb7ec8801102ddec95483d
Implement filling drop in MIR

Hopefully the author caught all the cases. For the mir_dynamic_drops_3 test case the ratio of
memsets to other instructions is 12%. On the other hand we actually do not double drop for at least
the test cases provided anymore in MIR.
src/librustc_llvm/lib.rs
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/builder.rs
src/librustc_trans/trans/common.rs
src/librustc_trans/trans/mir/block.rs
src/librustc_trans/trans/mir/drop.rs [new file with mode: 0644]
src/librustc_trans/trans/mir/lvalue.rs
src/librustc_trans/trans/mir/mod.rs
src/librustc_trans/trans/mir/operand.rs
src/librustc_trans/trans/mir/rvalue.rs
src/rustllvm/RustWrapper.cpp