rust/src/test
Wesley Wiser 2ec73395b9 Improve SimplifyLocals pass so it can remove unused consts
The `ConstProp` can cause many locals to be initialized to a constant
value and then never read from. `ConstProp` can also evaluate ZSTs into
constant values. Previously, many of these would be removed by other
parts of the MIR optimization pipeline. However, evaluating ZSTs
(especially `()`) into constant values defeated those parts of the
optimizer and so in a2e3ed5c05, I added a
hack to `ConstProp` that skips evaluating ZSTs to avoid that regression.

This commit changes `SimplifyLocals` so that it doesn't consider writes
of const values to a local to be a use of that local. In doing so,
`SimplifyLocals` is able to remove otherwise unused locals left behind
by other optimization passes (`ConstProp` in particular).
2019-10-20 23:49:42 -04:00
..
assembly
auxiliary
codegen Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
codegen-units rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
compile-fail [const-prop] Handle MIR Rvalue::Aggregates 2019-10-18 06:29:57 -04:00
debuginfo fix debuginfo/issue22656 with LLDB 8 2019-09-18 10:42:55 -04:00
incremental Improve SimplifyLocals pass so it can remove unused consts 2019-10-20 23:49:42 -04:00
mir-opt Improve SimplifyLocals pass so it can remove unused consts 2019-10-20 23:49:42 -04:00
pretty Print visibility of macro items 2019-09-15 10:22:13 +01:00
run-fail [const-prop] Handle MIR Rvalue::Aggregates 2019-10-18 06:29:57 -04:00
run-make Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
run-make-fulldeps Avoid injecting sanitizer runtimes into staticlibs (#64629). 2019-10-17 14:09:49 +02:00
run-pass-valgrind Remove no-prefer-dynamic from valgrind tests 2019-09-01 10:09:45 -04:00
rustdoc Rollup merge of #65314 - tmiasko:rustdoc-z, r=ollie27 2019-10-21 01:39:11 +02:00
rustdoc-js Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-js-std Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-ui Rollup merge of #65314 - tmiasko:rustdoc-z, r=ollie27 2019-10-21 01:39:11 +02:00
rustfix
ui Rollup merge of #65629 - ecstatic-morse:remove-graphviz, r=Mark-Simulacrum 2019-10-21 01:39:17 +02:00
ui-fulldeps Rollup merge of #65498 - SimonSapin:plugin-help, r=Centril 2019-10-18 13:48:26 -07:00
COMPILER_TESTS.md doc: fix broken sentence 2019-08-06 02:36:59 +02:00