Skip to content

Commit 5ae61db

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 d9c6c1f commit 5ae61db

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
@@ -364,13 +364,13 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) {
364364
};
365365

366366
cfg.has_reliable_f128 = match (target_arch, target_os) {
367+
// Unsupported https://github.com/llvm/llvm-project/issues/121122
368+
("amdgpu", _) => false,
367369
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
368370
("arm64ec", _) => false,
369371
// Selection bug <https://github.com/llvm/llvm-project/issues/95471>. This issue is closed
370372
// but basic math still does not work.
371373
("nvptx64", _) => false,
372-
// Unsupported https://github.com/llvm/llvm-project/issues/121122
373-
("amdgpu", _) => false,
374374
// ABI bugs <https://github.com/rust-lang/rust/issues/125109> et al. (full
375375
// list at <https://github.com/rust-lang/rust/issues/116909>)
376376
("powerpc" | "powerpc64", _) => false,

0 commit comments

Comments
 (0)