Skip to content

Commit d1c55e3

Browse files
committed
rustc_codegen_llvm: Sort 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 41dbdbb commit d1c55e3

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

358358
cfg.has_reliable_f128 = match (target_arch, target_os) {
359+
// Unsupported https://github.com/llvm/llvm-project/issues/121122
360+
("amdgpu", _) => false,
359361
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
360362
("arm64ec", _) => false,
361363
// Selection bug <https://github.com/llvm/llvm-project/issues/95471>. This issue is closed
362364
// but basic math still does not work.
363365
("nvptx64", _) => false,
364-
// Unsupported https://github.com/llvm/llvm-project/issues/121122
365-
("amdgpu", _) => false,
366366
// ABI bugs <https://github.com/rust-lang/rust/issues/125109> et al. (full
367367
// list at <https://github.com/rust-lang/rust/issues/116909>)
368368
("powerpc" | "powerpc64", _) => false,

0 commit comments

Comments
 (0)