Home
last modified time | relevance | path

Searched refs:isAllOnes (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp50 if (DB.getDemandedBits(I).isAllOnes()) in clearAssumptionsOfUsers()
85 if (DB.getDemandedBits(J).isAllOnes()) in clearAssumptionsOfUsers()
137 if (!Demanded.isAllOnes()) { in bitTrackingDCE()
H A DStraightLineStrengthReduce.cpp588 if (IndexOffset.isAllOnes()) in emitBump()
H A DReassociate.cpp1245 if (ConstOpnd.isAllOnes()) in createAndInstr()
1324 if (!C3.isZero() && !C3.isAllOnes()) { in CombineXorOpnd()
1340 if (!C3.isZero() && !C3.isAllOnes()) { in CombineXorOpnd()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h76 bool isZero() const { return Zero.isAllOnes(); } in isZero()
79 bool isAllOnes() const { return One.isAllOnes(); } in isAllOnes() function
316 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp97 if (!C->isAllOnes()) in decomposeBitTestICmp()
104 if (!C->isAllOnes()) in decomposeBitTestICmp()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DLowerTypeTests.h52 bool isAllOnes() const { in isAllOnes() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp313 if (DemandedMask.isAllOnes()) in SimplifyDemandedUseBits()
335 if (match(I->getOperand(1), m_APInt(C)) && !C->isAllOnes()) { in SimplifyDemandedUseBits()
336 if ((*C | ~DemandedMask).isAllOnes()) { in SimplifyDemandedUseBits()
865 if (Rem->isAllOnes()) in SimplifyDemandedUseBits()
1423 if (DemandedElts.isAllOnes()) in SimplifyDemandedVectorElts()
1581 DemandedElts.isAllOnes()) { in SimplifyDemandedVectorElts()
1933 if (PoisonElts.isAllOnes()) in SimplifyDemandedVectorElts()
H A DInstCombineCompares.cpp93 } else if (C.isAllOnes()) { in isSignTest()
979 if (AP2.isAllOnes()) in foldICmpShrConstConst()
1005 if (AP1.isAllOnes() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
2200 if (C.isMinSignedValue() && MulC->isAllOnes()) in foldICmpMulConstant()
2304 if (C.isZero() || (Pred == ICmpInst::ICMP_SGT ? C.isAllOnes() : C.isOne())) in foldICmpShlConstant()
2753 if (C2->isZero() || C2->isOne() || (DivIsSigned && C2->isAllOnes())) in foldICmpDivConstant()
2931 if (Pred == ICmpInst::ICMP_SGT && C.isAllOnes()) in foldICmpSubConstant()
3117 if (Pred == CmpInst::ICMP_ULT && C2->isAllOnes()) { in foldICmpAddConstant()
3361 if (Cmp.isEquality() && C->isAllOnes() && Bitcast->hasOneUse()) { in foldICmpBitCast()
3783 if (C.isZero() || C.isAllOnes()) in foldICmpInstWithConstantAllowPoison()
[all …]
H A DInstCombineMulDivRem.cpp381 return Rem.isZero() && !Quot.isAllOnes(); in visitMul()
1069 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple()
1371 if (OB1HasNSW && match(B, m_APInt(C1)) && !C1->isAllOnes()) in commonIDivTransforms()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp299 if (V.isAllOnes()) in makeExactMulNSWRegion()
1173 if (C->isAllOnes()) in multiply()
1180 if (C->isAllOnes()) in multiply()
1377 if (!NegR.Lower.isAllOnes()) { in sdiv()
1379 if (RHS.Lower.isAllOnes()) in sdiv()
1543 if (Other.isSingleElement() && Other.getSingleElement()->isAllOnes()) in binaryXor()
1545 if (isSingleElement() && getSingleElement()->isAllOnes()) in binaryXor()
H A DConstantFold.cpp825 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
833 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp103 if (EltUndef.isAllOnes()) { in extractConstantMask()
H A DX86ISelDAGToDAG.cpp2777 if (!Mask.isAllOnes()) { in matchAddressRecursively()
2799 if (Src.getOpcode() == ISD::SRL && !Mask.isAllOnes()) { in matchAddressRecursively()
3850 auto isAllOnes = [this, peekThroughOneUseTruncation, NVT](SDValue V) { in matchBitExtract() local
3858 auto matchPatternB = [checkOneUse, isAllOnes, peekThroughOneUseTruncation, in matchBitExtract()
3864 if (!isAllOnes(Mask->getOperand(1))) in matchBitExtract()
3871 if (!isAllOnes(M0->getOperand(0))) in matchBitExtract()
4795 if (NegMaskVal.isAllOnes()) { in shrinkAndImmediate()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1282 if (!DemandedBits.isAllOnes() || !DemandedSubElts.isAllOnes() || in SimplifyDemandedBits()
1283 !DemandedSrcElts.isAllOnes()) { in SimplifyDemandedBits()
1314 if (!DemandedBits.isAllOnes() || !DemandedSrcElts.isAllOnes()) { in SimplifyDemandedBits()
1470 if (!DemandedBits.isAllOnes() || !DemandedElts.isAllOnes()) { in SimplifyDemandedBits()
1522 if (!DemandedBits.isAllOnes() || !DemandedElts.isAllOnes()) { in SimplifyDemandedBits()
1608 if (!C->isAllOnes() && DemandedBits.isSubsetOf(C->getAPIntValue())) { in SimplifyDemandedBits()
1642 if (!C || !C->isAllOnes()) in SimplifyDemandedBits()
1647 if (!DemandedBits.isAllOnes() || !DemandedElts.isAllOnes()) { in SimplifyDemandedBits()
1826 if (!InDemandedMask.isAllOnes() || !DemandedElts.isAllOnes()) { in SimplifyDemandedBits()
1999 if (!InDemandedMask.isAllOnes() || !DemandedElts.isAllOnes()) { in SimplifyDemandedBits()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelDAGToDAG.cpp335 if (ConstNode->isAllOnes()) { in Select()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp337 if (LHS.isAllOnes()) in shl()
969 Res = (Num.isMinSignedValue() && Denom.isAllOnes()) in sdiv()
H A DAPInt.cpp1926 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov()
1935 (isMinSignedValue() && RHS.isAllOnes()); in smul_ov()
3006 if (A.extractBits(Scale, i * Scale).isAllOnes()) in ScaleBitMask()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h351 bool isAllOnes() const { in isAllOnes() function
379 bool isMaxValue() const { return isAllOnes(); } in isMaxValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp583 assert(ValueMask.isAllOnes() && "Value is not fully mapped"); in verify()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp3323 (LHSBits.Zero | RHSBits.One).isAllOnes()) { in matchRedundantAnd()
3330 (LHSBits.One | RHSBits.Zero).isAllOnes()) { in matchRedundantAnd()
3364 (LHSBits.One | RHSBits.Zero).isAllOnes()) { in matchRedundantOr()
3371 (LHSBits.Zero | RHSBits.One).isAllOnes()) { in matchRedundantOr()
6719 if (TrueValue.isAllOnes() && FalseValue.isZero()) { in tryFoldSelectOfConstants()
6739 if (TrueValue.isZero() && FalseValue.isAllOnes()) { in tryFoldSelectOfConstants()
6785 if (TrueValue.isAllOnes()) { in tryFoldSelectOfConstants()
6796 if (FalseValue.isAllOnes()) { in tryFoldSelectOfConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp180 if (CI->getValue().trunc(16).isAllOnes()) { in instCombineIntrinsic()
437 if (Opcode == Instruction::Xor && Imm.isAllOnes()) in getIntImmCostInst()
454 if (Inst && Opcode == Instruction::ICmp && Idx == 1 && Imm.isAllOnes()) { in getIntImmCostInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp144 if (isAllOnes()) { in print()
1137 if (BSI.isAllOnes()) { in lowerTypeTestCalls()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h218 bool isMinusOne() const { return Val.isAllOnes(); } in isMinusOne()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h800 return ConstVal.isAllOnes();
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp1633 if (NumToTest != 0 && Known.Zero.ashr(NumToTest).isAllOnes()) { in getNumSignificantBits()
1641 if (Known.Zero.ashr(Pow2 - 1).isAllOnes()) in getNumSignificantBits()
2798 if (Unknown.isAllOnes()) in calculatePointerDifference()

123