[llvm] [AArch64][GlobalISel] Legalize s16 G_FCONSTANT to avoid widening to G_CONSTANT (PR #161205)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 11:19:41 PDT 2025
================
@@ -1469,8 +1469,9 @@ define <2 x half> @loaddup_str_v2half(ptr %p) {
; CHECK-GI-LABEL: loaddup_str_v2half:
; CHECK-GI: // %bb.0: // %entry
; CHECK-GI-NEXT: ldr h0, [x0]
-; CHECK-GI-NEXT: strh wzr, [x0]
+; CHECK-GI-NEXT: movi d1, #0000000000000000
----------------
davemgreen wrote:
For this can we get it to prefer GPR during reg-bank-select? Same for other zero FCONSTANTs if they do the same.
https://github.com/llvm/llvm-project/pull/161205
More information about the llvm-commits
mailing list