mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
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