Home
last modified time | relevance | path

Searched refs:isNegatedPowerOf2 (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp123 if (FlippedSign.isNegatedPowerOf2()) { in decomposeBitTestICmp()
143 if (C.isNegatedPowerOf2()) { in decomposeBitTestICmp()
H A DTargetTransformInfo.cpp898 else if (CI->getValue().isNegatedPowerOf2()) in getOperandInfo()
925 else if (CI->getValue().isNegatedPowerOf2()) in getOperandInfo()
935 AllNegPow2 &= CI->getValue().isNegatedPowerOf2(); in getOperandInfo()
H A DScalarEvolution.cpp10959 (OrNegative && C->getAPInt().isNegatedPowerOf2()); in isKnownToBeAPowerOfTwo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp605 if (IndexOffset.isNegatedPowerOf2()) { in emitBump()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1175 bool isNegatedPowerOf2() const { in isNegatedPowerOf2() function
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h449 bool isNegatedPowerOf2() const { in isNegatedPowerOf2() function
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp583 CVal->getValue().isNegatedPowerOf2())) in getArithmeticInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2516 if (Divisor.isNegatedPowerOf2()) { in instCombineSVESDIV()
4021 if (Op2Info.isPowerOf2() || Op2Info.isNegatedPowerOf2()) { in getArithmeticInstrCost()
4030 if (Op2Info.isPowerOf2() || Op2Info.isNegatedPowerOf2()) { in getArithmeticInstrCost()
4037 (Op2Info.isNegatedPowerOf2() && ISD == ISD::SDIV) ? AsrCost : 0; in getArithmeticInstrCost()
H A DAArch64FastISel.cpp4900 !(C.isPowerOf2() || C.isNegatedPowerOf2())) in selectSDiv()
H A DAArch64ISelLowering.cpp18521 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSDIVPow2()
18550 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSREMPow2()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h623 bool isValue(const APInt &C) const { return C.isNegatedPowerOf2(); } in isValue()
635 bool isValue(const APInt &C) const { return !C || C.isNegatedPowerOf2(); } in isValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1799 C2->isNegatedPowerOf2()) in foldICmpAndConstConst()
1804 (C1 - 1).ule(~*C2) && C2->isNegatedPowerOf2() && !C2->isSignMask()) in foldICmpAndConstConst()
1829 if (NewC2.isNegatedPowerOf2()) { in foldICmpAndConstConst()
1974 if (Cmp.getOperand(1) == Y && C.isNegatedPowerOf2()) { in foldICmpAndConstant()
6042 (*C0 ^ *C1).isNegatedPowerOf2(); in foldICmpEquality()
H A DInstCombineShifts.cpp634 MulConst->isNegatedPowerOf2() && MulConst->countr_zero() == NumBits; in canEvaluateShifted()
H A DInstCombineAddSub.cpp2506 (InnerSub->hasNoUnsignedWrap() || C2->isNegatedPowerOf2())) { in visitSub()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp374 C->getValue() == Imm && Imm.isNegative() && Imm.isNegatedPowerOf2()) { in isSSATMinMaxPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp240 if (Imm.isPowerOf2() || Imm.isNegatedPowerOf2()) in getIntImmCostInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp328 (Op2Info.isPowerOf2() || Op2Info.isNegatedPowerOf2())) { in getArithmeticInstrCost()
332 if (Op2Info.isNegatedPowerOf2()) in getArithmeticInstrCost()
H A DX86ISelLowering.cpp23689 assert((Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2()) && in BuildSDIVPow2()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2948 if (UnmaskedC.isNegatedPowerOf2()) in SimplifyDemandedBits()
5362 if (AndRHSC.isNegatedPowerOf2() && C1.isSubsetOf(AndRHSC)) { in SimplifySetCC()
H A DDAGCombiner.cpp4710 if (N1IsConst && !N1IsOpaqueConst && ConstValue1.isNegatedPowerOf2()) { in visitMUL()
5110 if (C->getAPIntValue().isNegatedPowerOf2()) in isDivisorPowerOfTwo()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp5720 (IsSigned && CI->getValue().isNegatedPowerOf2())); in matchDivByPow2()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp17474 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSDIVPow2()
17480 bool IsNegPow2 = Divisor.isNegatedPowerOf2(); in BuildSDIVPow2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp10941 return CI->getValue().isNegatedPowerOf2(); in getOperandInfo()