Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp815 else if (CI->getValue().isNegatedPowerOf2()) in getOperandInfo()
839 else if (CI->getValue().isNegatedPowerOf2()) in getOperandInfo()
847 AllNegPow2 &= CI->getValue().isNegatedPowerOf2(); in getOperandInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp603 if (IndexOffset.isNegatedPowerOf2()) { in emitBump()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp463 CVal->getValue().isNegatedPowerOf2())) in getArithmeticInstrCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h427 bool isNegatedPowerOf2() const { in isNegatedPowerOf2() function
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp191 if (Imm.isPowerOf2() || Imm.isNegatedPowerOf2()) in getIntImmCostInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp608 MulConst->isNegatedPowerOf2() && MulConst->countr_zero() == NumBits; in canEvaluateShifted()
H A DInstCombineCompares.cpp1764 if (NewC2.isNegatedPowerOf2()) { in foldICmpAndConstConst()
1881 if (Cmp.getOperand(1) == Y && C.isNegatedPowerOf2()) { in foldICmpAndConstant()
5513 if (Pred == ICmpInst::ICMP_ULT && C->isNegatedPowerOf2()) { in foldICmpWithTrunc()
H A DInstCombineAddSub.cpp2350 (InnerSub->hasNoUnsignedWrap() || C2->isNegatedPowerOf2())) { in visitSub()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1081 bool isNegatedPowerOf2() const { in isNegatedPowerOf2() function
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp350 C->getValue() == Imm && Imm.isNegative() && Imm.isNegatedPowerOf2()) { in isSSATMinMaxPattern()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h556 bool isValue(const APInt &C) { return C.isNegatedPowerOf2(); } in isValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp303 (Op2Info.isPowerOf2() || Op2Info.isNegatedPowerOf2())) { in getArithmeticInstrCost()
307 if (Op2Info.isNegatedPowerOf2()) in getArithmeticInstrCost()
H A DX86ISelLowering.cpp22766 assert((Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2()) && in BuildSDIVPow2()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1727 if (Divisor.isNegatedPowerOf2()) { in instCombineSVESDIV()
H A DAArch64FastISel.cpp4884 !(C.isPowerOf2() || C.isNegatedPowerOf2())) in selectSDiv()
H A DAArch64ISelLowering.cpp16823 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSDIVPow2()
16846 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSREMPow2()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2849 if (UnmaskedC.isNegatedPowerOf2()) in SimplifyDemandedBits()
5074 if (AndRHSC.isNegatedPowerOf2() && (AndRHSC & C1) == C1) { in SimplifySetCC()
H A DDAGCombiner.cpp4426 if (N1IsConst && !N1IsOpaqueConst && ConstValue1.isNegatedPowerOf2()) { in visitMUL()
4807 if (C->getAPIntValue().isNegatedPowerOf2()) in isDivisorPowerOfTwo()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp16367 !(Divisor.isPowerOf2() || Divisor.isNegatedPowerOf2())) in BuildSDIVPow2()
16373 bool IsNegPow2 = Divisor.isNegatedPowerOf2(); in BuildSDIVPow2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp6563 return CI->getValue().isNegatedPowerOf2(); in getOperandInfo()