rust/tests
bors d2d24e395a Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk
Account for immutably borrowed locals in MIR copy-prop and GVN

For the most part, we consider that immutably borrowed `Freeze` locals still fulfill SSA conditions. As the borrow is immutable, any use of the local will have the value given by the single assignment, and there can be no surprise.

This allows copy-prop to merge a non-borrowed local with a borrowed local. We chose to keep copy-classes heads unborrowed, as those may be easier to optimize in later passes.

This also allows to GVN the value behind an immutable borrow. If a SSA local is borrowed, dereferencing that borrow is equivalent to copying the local's value: re-executing the assignment between the borrow and the dereference would be UB.

r? `@ghost` for perf
2024-05-03 21:50:13 +00:00
..
assembly Add inline comments why we're forcing the target cpu 2024-05-01 16:54:20 -07:00
auxiliary extend extern tests to include FiveU16s 2024-03-17 00:07:42 -04:00
codegen Add inline comments why we're forcing the target cpu 2024-05-01 16:54:20 -07:00
codegen-units Codegen const panic messages as function calls 2024-03-22 09:55:50 -04:00
coverage Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk 2024-05-03 21:50:13 +00:00
coverage-run-rustdoc
crashes Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk 2024-05-03 21:50:13 +00:00
debuginfo Update lldb only tests 2024-04-26 04:11:05 +03:00
incremental add test for incremental ICE: slice-pattern-const.rs #83085 2024-04-21 14:45:00 +02:00
mir-opt Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk 2024-05-03 21:50:13 +00:00
pretty Rollup merge of #124269 - scrabsha:sasha/fix-124206, r=dtolnay 2024-04-29 18:03:22 +01:00
run-make Rollup merge of #124613 - GuillaumeGomez:fmt-run-make, r=onur-ozkan 2024-05-03 15:26:11 +02:00
run-make-fulldeps Soft-destabilize RustcEncodable/RustcDecodable 2024-03-22 13:24:35 -07:00
run-pass-valgrind Add test for Apple's -weak_framework linker argument 2024-03-18 23:27:34 +01:00
rustdoc Fix the assertion crash from rustdoc document indent widths 2024-04-28 11:17:09 +08:00
rustdoc-gui Rollup merge of #124197 - GuillaumeGomez:move-duplicated-code, r=notriddle 2024-04-23 06:24:56 +02:00
rustdoc-js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-js-std rustdoc-search: fix description on aliases in results 2024-04-18 22:21:29 -07:00
rustdoc-json
rustdoc-ui Adjust #[macro_export]/doctest help suggestion for non_local_defs lint 2024-05-01 16:57:20 +02:00
ui Rollup merge of #124510 - linyihai:raw-ident-in-typo-suggestion, r=fmease 2024-05-03 20:33:45 +02:00
ui-fulldeps Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco 2024-04-23 17:25:17 +02:00
COMPILER_TESTS.md