/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 885 Constant *ShAmtC; in visitCallInst() local 886 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 887 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 890 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 891 if (ModuloC != ShAmtC) in visitCallInst() 894 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 903 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 914 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 920 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 923 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
D | InstCombineAddSub.cpp | 952 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 953 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 954 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
D | InstCombineAndOrXor.cpp | 1783 Constant *ShAmtC = ConstantInt::get(Ty, ShiftC->zext(Width)); in visitAnd() local 1784 return BinaryOperator::CreateLShr(Sext, ShAmtC); in visitAnd()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 1955 Constant *ShAmtC; in visitCallInst() local 1956 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 1957 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 1960 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1961 if (ModuloC != ShAmtC) { in visitCallInst() 1965 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1974 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1985 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1991 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1994 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 2208 auto *ShAmtC = dyn_cast<ConstantSDNode>(Shl.getOperand(1)); in matchAddressRecursively() local 2209 if (!ShAmtC || ShAmtC->getZExtValue() > 3) in matchAddressRecursively() 2215 ShAmtC->getZExtValue()); in matchAddressRecursively() 2226 AM.Scale = 1 << ShAmtC->getZExtValue(); in matchAddressRecursively()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 5267 const APInt *ShAmtC; in simplifyIntrinsic() local 5268 if (match(ShAmtArg, m_APInt(ShAmtC))) { in simplifyIntrinsic() 5270 APInt BitWidth = APInt(ShAmtC->getBitWidth(), ShAmtC->getBitWidth()); in simplifyIntrinsic() 5271 if (ShAmtC->urem(BitWidth).isNullValue()) in simplifyIntrinsic()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 5595 const APInt *ShAmtC; in simplifyIntrinsic() local 5596 if (match(ShAmtArg, m_APInt(ShAmtC))) { in simplifyIntrinsic() 5598 APInt BitWidth = APInt(ShAmtC->getBitWidth(), ShAmtC->getBitWidth()); in simplifyIntrinsic() 5599 if (ShAmtC->urem(BitWidth).isNullValue()) in simplifyIntrinsic()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 2388 auto *ShAmtC = dyn_cast<ConstantSDNode>(Shl.getOperand(1)); in matchAddressRecursively() local 2389 if (!ShAmtC || ShAmtC->getZExtValue() > 3) in matchAddressRecursively() 2395 ShAmtC->getZExtValue()); in matchAddressRecursively() 2406 AM.Scale = 1 << ShAmtC->getZExtValue(); in matchAddressRecursively()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 2065 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in foldAddSubOfSignBit() local 2066 if (!ShAmtC || ShAmtC->getAPIntValue() != (VT.getScalarSizeInBits() - 1)) in foldAddSubOfSignBit() 3251 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in visitSUB() local 3252 if (ShAmtC && in visitSUB() 3253 ShAmtC->getAPIntValue() == (N1.getScalarValueSizeInBits() - 1)) { in visitSUB() 8382 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 8383 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 8389 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 8390 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 8468 SDValue ShAmtC = DAG.getConstant(C1Val.exactLogBase2(), DL, VT); in foldSelectOfConstants() local [all …]
|
D | TargetLowering.cpp | 1814 auto *ShAmtC = dyn_cast<ConstantSDNode>(ShAmt); in SimplifyDemandedBits() local 1815 if (!ShAmtC || ShAmtC->getAPIntValue().uge(BitWidth)) in SimplifyDemandedBits() 1817 uint64_t ShVal = ShAmtC->getZExtValue(); in SimplifyDemandedBits()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 2249 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in foldAddSubOfSignBit() local 2250 if (!ShAmtC || ShAmtC->getAPIntValue() != (VT.getScalarSizeInBits() - 1)) in foldAddSubOfSignBit() 3466 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in visitSUB() local 3467 if (ShAmtC && in visitSUB() 3468 ShAmtC->getAPIntValue() == (N1.getScalarValueSizeInBits() - 1)) { in visitSUB() 9072 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 9073 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 9079 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 9080 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 9158 SDValue ShAmtC = DAG.getConstant(C1Val.exactLogBase2(), DL, VT); in foldSelectOfConstants() local [all …]
|
D | TargetLowering.cpp | 2000 auto *ShAmtC = dyn_cast<ConstantSDNode>(ShAmt); in SimplifyDemandedBits() local 2001 if (!ShAmtC || ShAmtC->getAPIntValue().uge(BitWidth)) in SimplifyDemandedBits() 2003 uint64_t ShVal = ShAmtC->getZExtValue(); in SimplifyDemandedBits()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 3866 const APInt *ShAmtC; in isLoadCombineCandidateImpl() local 3869 (match(ZextLoad, m_Shl(m_Value(), m_APInt(ShAmtC))) && in isLoadCombineCandidateImpl() 3870 ShAmtC->urem(8) == 0))) in isLoadCombineCandidateImpl()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 9445 unsigned ShAmtC = cast<ConstantSDNode>(ShAmt)->getZExtValue(); in PerformORCombine() local 9447 if (ShAmtC != LSB) in PerformORCombine()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 12394 unsigned ShAmtC = cast<ConstantSDNode>(ShAmt)->getZExtValue(); in PerformORCombineToBFI() local 12396 if (ShAmtC != LSB) in PerformORCombineToBFI()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 13208 unsigned ShAmtC = cast<ConstantSDNode>(ShAmt)->getZExtValue(); in PerformORCombineToBFI() local 13210 if (ShAmtC != LSB) in PerformORCombineToBFI()
|