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`
This commit is contained in:
bors 2024-01-16 11:34:16 +00:00
commit 8683a79ffc

Diff content is not available