rust/tests
Samuel Tardieu d8c09c10e5
Rollup merge of #136840 - Flakebi:linker-plugin-lto-fat, r=dianqk
Fix linker-plugin-lto only doing thin lto

When rust provides LLVM bitcode files to lld and the bitcode contains
function summaries as used for thin lto, lld defaults to using thin lto.
This prevents some optimizations that are only applied for fat lto.

We solve this by not creating function summaries when fat lto is
enabled. The bitcode for the module is just directly written out.

An alternative solution would be to set the `ThinLTO=0` module flag to
signal lld to do fat lto.
The code in clang that sets this flag is here:
560149b5e3/clang/lib/CodeGen/BackendUtil.cpp (L1150)
The code in LLVM that queries the flag and defaults to thin lto if not
set is here:
e258bca950/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp (L4441-L4446)

try-job: x86_64-gnu-debug
try-job: aarch64-gnu-debug
2025-07-31 13:12:45 +02:00
..
assembly-llvm Relax check lines in x86-return-float.rs 2025-07-29 14:08:19 +02:00
auxiliary So many test updates x_x 2025-07-20 10:15:14 -07:00
codegen-llvm Rollup merge of #144232 - xacrimon:explicit-tail-call, r=WaffleLapkin 2025-07-31 15:42:00 +10:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage coverage: Re-land "Enlarge empty spans during MIR instrumentation" 2025-07-30 13:17:05 +10:00
coverage-run-rustdoc
crashes Auto merge of #144405 - lcnr:hir-typeck-uniquify, r=BoxyUwU 2025-07-31 00:32:55 +00:00
debuginfo Verify llvm-needs-components are not empty and match the --target value 2025-07-29 11:20:23 -07:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Rollup merge of #144663 - Zalathar:empty-span, r=petrochenkov 2025-07-31 15:42:00 +10:00
pretty expand: Micro-optimize prelude injection 2025-07-28 17:35:09 +03:00
run-make Rollup merge of #136840 - Flakebi:linker-plugin-lto-fat, r=dianqk 2025-07-31 13:12:45 +02:00
rustdoc Test renamed crates in rustdoc 2025-07-28 13:34:03 +01:00
rustdoc-gui Update rustdoc GUI tests 2025-07-01 15:49:45 +02:00
rustdoc-js Add test for aliases partial match 2025-07-16 14:27:22 +02:00
rustdoc-js-std Add test for aliases partial match 2025-07-16 14:27:22 +02:00
rustdoc-json rustdoc-json: Structured attributes 2025-07-15 16:52:41 +00:00
rustdoc-ui Rollup merge of #144308 - GuillaumeGomez:merged-doctest-times, r=lolbinarycat 2025-07-30 19:49:02 +02:00
ui Rollup merge of #144232 - xacrimon:explicit-tail-call, r=WaffleLapkin 2025-07-31 15:42:00 +10:00
ui-fulldeps use RustcPublic instead of StableMir 2025-07-18 18:49:32 +00:00
COMPILER_TESTS.md