[llvm] [LoongArch] Simplily fix extractelement on LA32 (PR #159564)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 06:20:39 PDT 2025
================
@@ -2855,6 +2855,10 @@ LoongArchTargetLowering::lowerEXTRACT_VECTOR_ELT(SDValue Op,
case MVT::v16i16:
case MVT::v4i64:
case MVT::v4f64: {
+ // TODO: Similar optimization can be applied for la32.
+ if (!Subtarget.is64Bit())
+ return SDValue();
+
----------------
zhaoqi5 wrote:
Great suggestions. I will modify it later.
https://github.com/llvm/llvm-project/pull/159564
More information about the llvm-commits
mailing list