Files
rust/compiler/rustc_monomorphize
bors 498b89dd40 Auto merge of #161583 - RalfJung:x86-sse-abi, r=nikic
x86: on targets that requires SSE, use those registers for ABI



Now that https://github.com/llvm/llvm-project/issues/142321 is fixed, we can use the vector ABI without re-introducing https://github.com/rust-lang/rust/issues/139029. So this effectively reverts https://github.com/rust-lang/rust/pull/141309.

Since this means we are relying on the SSE target feature for the Rust ABI, we also need to turn the ABI target feature check into a hard error. If we don't do that, we'll get post-mono errors in some situations and plain miscompilations in others.

Also this will cause performance regressions on LLVM 22 and 21 as those don't have the fix for  https://github.com/llvm/llvm-project/issues/142321. IMO that's fine. Programs will do the right thing, they will just be a bit slower due to https://github.com/rust-lang/rust/issues/139029.

r? @nikic 
Cc @tgross35
2026-09-18 04:48:34 +00:00
..
2026-08-21 10:33:56 +02:00