[llvm-branch-commits] [llvm] [LoongArch] Legalize BUILD_VECTOR into a broadcast when all non-undef elements are identical (PR #169755)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 16 01:21:53 PST 2026
================
@@ -80,7 +80,8 @@ define <2 x i64> @load_to_2xi64_offset(ptr %p) {
;
; LA64-LABEL: load_to_2xi64_offset:
; LA64: # %bb.0:
-; LA64-NEXT: fld.d $fa0, $a0, 6
+; LA64-NEXT: addi.d $a0, $a0, 6
+; LA64-NEXT: vldrepl.d $vr0, $a0, 0
----------------
zhaoqi5 wrote:
The cases where there is only one non-undef at index 0 and from the load with offset are excluded now.
https://github.com/llvm/llvm-project/pull/169755
More information about the llvm-branch-commits
mailing list