/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 1041 unsigned ShAmtC = C->getZExtValue(); in visitShl() local 1048 if (ShAmtC < SrcWidth && in visitShl() 1049 MaskedValueIsZero(X, APInt::getHighBitsSet(SrcWidth, ShAmtC), 0, &I)) in visitShl() 1050 return new ZExtInst(Builder.CreateShl(X, ShAmtC), Ty); in visitShl() 1055 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl() 1063 if (ShrAmt < ShAmtC) { in visitShl() 1065 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmtC - ShrAmt); in visitShl() 1075 if (ShrAmt > ShAmtC) { in visitShl() 1077 Constant *ShiftDiff = ConstantInt::get(Ty, ShrAmt - ShAmtC); in visitShl() 1088 if (ShrAmt < ShAmtC) { in visitShl() [all …]
|
H A D | InstCombineCalls.cpp | 2044 Constant *ShAmtC; in visitCallInst() local 2045 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC))) { in visitCallInst() 2049 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst() 2052 if (ModuloC != ShAmtC) in visitCallInst() 2056 ShAmtC, DL), in visitCallInst() 2065 if (!isKnownNonZero(ShAmtC, SQ.getWithInstruction(II))) in visitCallInst() 2068 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 2079 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 2085 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 2088 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 970 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 971 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 972 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
H A D | InstCombineCompares.cpp | 1480 const APInt *ShAmtC; in foldICmpTruncConstant() local 1483 match(X, m_Shr(m_Value(ShOp), m_APInt(ShAmtC))) && in foldICmpTruncConstant() 1484 DstBits == SrcBits - ShAmtC->getZExtValue()) { in foldICmpTruncConstant()
|
H A D | InstCombineAndOrXor.cpp | 2407 Constant *ShAmtC = ConstantInt::get(Ty, ShiftC->zext(Width)); in visitAnd() local 2408 return BinaryOperator::CreateLShr(Sext, ShAmtC); in visitAnd()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LazyValueInfo.cpp | 1227 const APInt *ShAmtC; in getValueFromICmpCondition() local 1229 match(LHS, m_AShr(m_Specific(Val), m_APInt(ShAmtC))) && in getValueFromICmpCondition() 1233 APInt New = RHS << *ShAmtC; in getValueFromICmpCondition() 1234 if ((New.ashr(*ShAmtC)) != RHS) in getValueFromICmpCondition()
|
H A D | InstructionSimplify.cpp | 6809 const APInt *ShAmtC; in simplifyIntrinsic() local 6810 if (match(ShAmtArg, m_APInt(ShAmtC))) { in simplifyIntrinsic() 6812 APInt BitWidth = APInt(ShAmtC->getBitWidth(), ShAmtC->getBitWidth()); in simplifyIntrinsic() 6813 if (ShAmtC->urem(BitWidth).isZero()) in simplifyIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 2608 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in foldAddSubOfSignBit() local 2609 if (!ShAmtC || ShAmtC->getAPIntValue() != (VT.getScalarSizeInBits() - 1)) in foldAddSubOfSignBit() 4072 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt); in visitSUB() local 4073 if (ShAmtC && ShAmtC->getAPIntValue() == (BitWidth - 1)) { in visitSUB() 11345 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 11346 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 11351 SDValue ShAmtC = DAG.getConstant(X.getScalarValueSizeInBits() - 1, DL, VT); in foldSelectOfConstantsUsingSra() local 11352 SDValue Sra = DAG.getNode(ISD::SRA, DL, VT, X, ShAmtC); in foldSelectOfConstantsUsingSra() 11472 SDValue ShAmtC = in foldSelectOfConstants() local 11474 return DAG.getNode(ISD::SHL, DL, VT, Cond, ShAmtC); in foldSelectOfConstants() [all …]
|
H A D | TargetLowering.cpp | 2600 std::optional<uint64_t> ShAmtC = in SimplifyDemandedBits() local 2602 if (!ShAmtC || *ShAmtC >= BitWidth) in SimplifyDemandedBits() 2604 uint64_t ShVal = *ShAmtC; in SimplifyDemandedBits() 4407 auto *ShAmtC = isConstOrConstSplat(N0.getOperand(2)); in foldSetCCWithFunnelShift() local 4408 if (!ShAmtC || ShAmtC->getAPIntValue().uge(BitWidth)) in foldSetCCWithFunnelShift() 4412 unsigned ShAmt = ShAmtC->getZExtValue(); in foldSetCCWithFunnelShift()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelDAGToDAG.cpp | 2753 auto *ShAmtC = dyn_cast<ConstantSDNode>(ShlAmt); in matchAddressRecursively() local 2754 if (!ShAmtC) in matchAddressRecursively() 2756 unsigned ShAmtV = ShAmtC->getZExtValue(); in matchAddressRecursively()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | CombinerHelper.cpp | 6779 auto ShAmtC = B.buildConstant(ShiftTy, TrueValue.exactLogBase2()); in tryFoldSelectOfConstants() local 6780 B.buildShl(Dest, Inner, ShAmtC, Flags); in tryFoldSelectOfConstants()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 10055 const APInt *ShAmtC; in isLoadCombineCandidateImpl() local 10059 (match(ZextLoad, m_Shl(m_Value(), m_APInt(ShAmtC))) && in isLoadCombineCandidateImpl() 10060 ShAmtC->urem(8) == 0))) { in isLoadCombineCandidateImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 13507 auto *ShAmtC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineSubShiftToOrcB() 13508 if (!ShAmtC || ShAmtC->getZExtValue() != 8) in combineSubShiftToOrcB() 13504 auto *ShAmtC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); combineSubShiftToOrcB() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 14631 unsigned ShAmtC = ShAmt->getAsZExtVal(); in PerformORCombineToBFI() local 14633 if (ShAmtC != LSB) in PerformORCombineToBFI()
|