[llvm] Missing AArch64ISD::BICi handling (PR #76644)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 31 06:21:08 PST 2023
================
@@ -23672,6 +23672,18 @@ SDValue AArch64TargetLowering::PerformDAGCombine(SDNode *N,
if (auto R = foldOverflowCheck(N, DAG, /* IsAdd */ false))
return R;
return performFlagSettingCombine(N, DCI, AArch64ISD::SBC);
+ case AArch64ISD::BICi: {
+ KnownBits Known;
+ APInt DemandedElts(32, N->getValueType(0).getVectorNumElements());
+ APInt EltSize(32, N->getValueType(0).getScalarSizeInBits());
+ TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(),
+ !DCI.isBeforeLegalizeOps());
+ if (SimplifyDemandedBitsForTargetNode(SDValue(N, 0), EltSize, DemandedElts,
----------------
RKSimon wrote:
Use TLI.SimplifyDemandedBits here
https://github.com/llvm/llvm-project/pull/76644
More information about the llvm-commits
mailing list