[llvm] [LoongArch] Add demanded bits support for [X]VMSKLTZ (PR #143528)
Lu Weining via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 12 00:59:15 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) {
----------------
SixWeining wrote:
Add a `default` branch to avoid compiler warning?
https://github.com/llvm/llvm-project/pull/143528
More information about the llvm-commits
mailing list