/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | BDCE.cpp | 50 if (DB.getDemandedBits(I).isAllOnes()) in clearAssumptionsOfUsers() 85 if (DB.getDemandedBits(J).isAllOnes()) in clearAssumptionsOfUsers() 137 if (!Demanded.isAllOnes()) { in bitTrackingDCE()
|
H A D | StraightLineStrengthReduce.cpp | 588 if (IndexOffset.isAllOnes()) in emitBump()
|
H A D | Reassociate.cpp | 1245 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 D | KnownBits.h | 76 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 D | CmpInstAnalysis.cpp | 97 if (!C->isAllOnes()) in decomposeBitTestICmp() 104 if (!C->isAllOnes()) in decomposeBitTestICmp()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | LowerTypeTests.h | 52 bool isAllOnes() const { in isAllOnes() function
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 313 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 D | InstCombineCompares.cpp | 93 } 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 D | InstCombineMulDivRem.cpp | 381 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 D | ConstantRange.cpp | 299 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 D | ConstantFold.cpp | 825 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 D | X86ShuffleDecodeConstantPool.cpp | 103 if (EltUndef.isAllOnes()) { in extractConstantMask()
|
H A D | X86ISelDAGToDAG.cpp | 2777 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 D | TargetLowering.cpp | 1282 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 D | LanaiISelDAGToDAG.cpp | 335 if (ConstNode->isAllOnes()) { in Select()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 337 if (LHS.isAllOnes()) in shl() 969 Res = (Num.isMinSignedValue() && Denom.isAllOnes()) in sdiv()
|
H A D | APInt.cpp | 1926 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 D | APInt.h | 351 bool isAllOnes() const { in isAllOnes() function 379 bool isMaxValue() const { return isAllOnes(); } in isMaxValue()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegisterBankInfo.cpp | 583 assert(ValueMask.isAllOnes() && "Value is not fully mapped"); in verify()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | CombinerHelper.cpp | 3323 (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 D | ARMTargetTransformInfo.cpp | 180 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 D | LowerTypeTests.cpp | 144 if (isAllOnes()) { in print() 1137 if (BSI.isAllOnes()) { in lowerTypeTestCalls()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 218 bool isMinusOne() const { return Val.isAllOnes(); } in isMinusOne()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SDPatternMatch.h | 800 return ConstVal.isAllOnes();
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 1633 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()
|