[llvm] [LoongArch] Add demanded bits support for [X]VMSKLTZ (PR #143528)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 01:31:10 PDT 2025


================
@@ -8192,3 +8210,56 @@ unsigned LoongArchTargetLowering::getNumRegistersForCallingConv(
 
   return TargetLowering::getNumRegistersForCallingConv(Context, CC, VT);
 }
+
+bool LoongArchTargetLowering::SimplifyDemandedBitsForTargetNode(
+    SDValue Op, const APInt &OriginalDemandedBits,
+    const APInt &OriginalDemandedElts, KnownBits &Known, TargetLoweringOpt &TLO,
+    unsigned Depth) const {
+  EVT VT = Op.getValueType();
+  unsigned BitWidth = OriginalDemandedBits.getBitWidth();
+  unsigned Opc = Op.getOpcode();
+  switch (Opc) {
----------------
heiher wrote:

All done. Thanks

https://github.com/llvm/llvm-project/pull/143528


More information about the llvm-commits mailing list