Home
last modified time | relevance | path

Searched refs:ShrAmt (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp634 const APInt *ShrAmt; in SimplifyDemandedUseBits() local
635 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt)))) in SimplifyDemandedUseBits()
637 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
1331 unsigned ShrAmt = ShrOp1.getZExtValue(); in simplifyShrShlDemandedBits() local
1341 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits()
1342 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits()
1344 if (ShrAmt <= ShlAmt) { in simplifyShrShlDemandedBits()
1345 BitMask2 <<= (ShlAmt - ShrAmt); in simplifyShrShlDemandedBits()
1347 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits()
1348 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
[all …]
H A DInstCombineShifts.cpp1062 unsigned ShrAmt = C1->getZExtValue(); in visitShl() local
1063 if (ShrAmt < ShAmtC) { in visitShl()
1065 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmtC - ShrAmt); in visitShl()
1069 (ShrAmt && in visitShl()
1075 if (ShrAmt > ShAmtC) { in visitShl()
1077 Constant *ShiftDiff = ConstantInt::get(Ty, ShrAmt - ShAmtC); in visitShl()
1087 unsigned ShrAmt = C1->getZExtValue(); in visitShl() local
1088 if (ShrAmt < ShAmtC) { in visitShl()
1090 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmtC - ShrAmt); in visitShl()
1094 (ShrAmt && in visitShl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4582 int64_t ShrAmt; in matchBitfieldExtractFromShr() local
4590 m_ICst(ShrAmt)))) in matchBitfieldExtractFromShr()
4594 if (ShlAmt < 0 || ShlAmt > ShrAmt || ShrAmt >= Size) in matchBitfieldExtractFromShr()
4598 if (Opcode == TargetOpcode::G_ASHR && ShlAmt == ShrAmt) in matchBitfieldExtractFromShr()
4602 const int64_t Pos = ShrAmt - ShlAmt; in matchBitfieldExtractFromShr()
4603 const int64_t Width = Size - ShrAmt; in matchBitfieldExtractFromShr()
4626 int64_t ShrAmt; in matchBitfieldExtractFromShrAnd() local
4631 m_ICst(ShrAmt)))) in matchBitfieldExtractFromShrAnd()
4635 if (ShrAmt < 0 || ShrAmt >= Size) in matchBitfieldExtractFromShrAnd()
4639 if (0 == (SMask >> ShrAmt)) { in matchBitfieldExtractFromShrAnd()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp4513 APInt ShlAmt, ShrAmt; in trySelectXAR() local
4515 !ISD::isConstantSplatVector(N1.getOperand(2).getNode(), ShrAmt)) in trySelectXAR()
4518 if (ShlAmt + ShrAmt != VT.getScalarSizeInBits()) in trySelectXAR()
4523 CurDAG->getTargetConstant(ShrAmt.getZExtValue(), DL, MVT::i32); in trySelectXAR()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp27711 SDValue ShrAmt = DAG.getShiftAmountConstant(ShCt, VT, SDLoc(Shl)); in SimplifySelectCC() local
27712 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC()