about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-16 11:34:16 +0000
committerbors <bors@rust-lang.org>2024-01-16 11:34:16 +0000
commitfa0dc208d0a34027c1d3cca7d47975d8238bcfde (patch)
tree4547cc426284d910643af86110c9401b70b1ee18 /compiler/rustc_codegen_llvm/src/errors.rs
parentf9c2421a2a6e34f3756900dd7d600704c08bfccb (diff)
parentbc35ee41fa6751a85a528656953b581fb02ddd25 (diff)
downloadrust-fa0dc208d0a34027c1d3cca7d47975d8238bcfde.tar.gz
rust-fa0dc208d0a34027c1d3cca7d47975d8238bcfde.zip
Auto merge of #119672 - cjgillot:dse-sandwich, r=oli-obk
Sandwich MIR optimizations between DSE.

This PR reorders MIR optimization passes in an attempt to increase their efficiency.

- Stop running CopyProp before GVN, it's useless as GVN will do the same thing anyway. Instead, we perform CopyProp at the end of the pipeline, to ensure we do not emit copy/move chains.
- Run DSE before GVN, as it increases the probability to have single-assignment locals.
- Run DSE after the final CopyProp to turn copies into moves.

r? `@ghost`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions