Skip to content

Commit 452403d

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 9d33e2e commit 452403d

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
@@ -389,15 +389,15 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) {
389389
};
390390

391391
cfg.has_reliable_f128 = match (target_arch, target_os) {
392+
// Unsupported https://github.com/llvm/llvm-project/issues/121122
393+
(Arch::AmdGpu, _) => false,
392394
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
393395
(Arch::Arm64EC, _) => false,
394396
// Selection bug <https://github.com/llvm/llvm-project/issues/96432> (fixed in LLVM 20.1.0)
395397
(Arch::Mips64 | Arch::Mips64r6, _) if version < (20, 1, 0) => false,
396398
// Selection bug <https://github.com/llvm/llvm-project/issues/95471>. This issue is closed
397399
// but basic math still does not work.
398400
(Arch::Nvptx64, _) => false,
399-
// Unsupported https://github.com/llvm/llvm-project/issues/121122
400-
(Arch::AmdGpu, _) => false,
401401
// ABI bugs <https://github.com/rust-lang/rust/issues/125109> et al. (full
402402
// list at <https://github.com/rust-lang/rust/issues/116909>)
403403
(Arch::PowerPC | Arch::PowerPC64, _) => false,

0 commit comments

Comments
 (0)