Skip to content

Commit 42d9f09

Browse files
committed
rustc_codegen_llvm: Reorder by arch in update_target_reliable_float_cfg
This commit reorders certain match clauses in `update_target_reliable_float_cfg` by the architecture when there's no problems reordering it.
1 parent 28203e1 commit 42d9f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,15 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) {
393393
};
394394

395395
cfg.has_reliable_f128 = match (target_arch, target_os) {
396+
// Unsupported https://github.com/llvm/llvm-project/issues/121122
397+
(Arch::AmdGpu, _) => false,
396398
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
397399
(Arch::Arm64EC, _) => false,
398400
// Selection bug <https://github.com/llvm/llvm-project/issues/96432> (fixed in LLVM 20.1.0)
399401
(Arch::Mips64 | Arch::Mips64r6, _) if version < (20, 1, 0) => false,
400402
// Selection bug <https://github.com/llvm/llvm-project/issues/95471>. This issue is closed
401403
// but basic math still does not work.
402404
(Arch::Nvptx64, _) => false,
403-
// Unsupported https://github.com/llvm/llvm-project/issues/121122
404-
(Arch::AmdGpu, _) => false,
405405
// ABI bugs <https://github.com/rust-lang/rust/issues/125109> et al. (full
406406
// list at <https://github.com/rust-lang/rust/issues/116909>)
407407
(Arch::PowerPC | Arch::PowerPC64, _) => false,

0 commit comments

Comments
 (0)