Home
last modified time | relevance | path

Searched refs:ShiftC (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp2014 const APInt *ShiftC; in visitAnd() local
2015 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC))))) && in visitAnd()
2016 ShiftC->ult(Width)) { in visitAnd()
2017 if (*C == APInt::getLowBitsSet(Width, Width - ShiftC->getZExtValue())) { in visitAnd()
2021 Constant *ShAmtC = ConstantInt::get(Ty, ShiftC->zext(Width)); in visitAnd()
2028 if (match(Op0, m_AShr(m_Value(X), m_APInt(ShiftC))) && ShiftC->ult(Width) && in visitAnd()
2029 C->isMask(Width - ShiftC->getZExtValue())) in visitAnd()
2030 return BinaryOperator::CreateLShr(X, ConstantInt::get(Ty, *ShiftC)); in visitAnd()
2137 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
2138 int Log2ShiftC = ShiftC->exactLogBase2(); in visitAnd()
H A DInstCombineSimplifyDemanded.cpp585 Constant *ShiftC = ConstantInt::get(VTy, CTZ); in SimplifyDemandedUseBits() local
586 Instruction *Shl = BinaryOperator::CreateShl(I->getOperand(0), ShiftC); in SimplifyDemandedUseBits()
H A DInstCombineCompares.cpp1591 const APInt *ShiftC; in foldICmpXorShiftConst() local
1593 m_AShr(m_Deferred(X), m_APInt(ShiftC)))))) in foldICmpXorShiftConst()
1595 uint64_t Shift = ShiftC->getLimitedValue(); in foldICmpXorShiftConst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp6723 auto *ShiftC = ConstantInt::get(Ty, Shift); in ReduceSwitchRange() local
6725 auto *LShr = Builder.CreateLShr(Sub, ShiftC); in ReduceSwitchRange()
6734 cast<ConstantInt>(ConstantInt::get(Ty, Sub.lshr(ShiftC->getValue())))); in ReduceSwitchRange()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp5704 SDValue ShiftC = CurDAG->getTargetConstant(ShiftAmt, dl, MVT::i64); in Select() local
5707 N0.getOperand(0), ShiftC), in Select()
H A DX86ISelLowering.cpp47901 auto *ShiftC = dyn_cast<ConstantSDNode>(N1); in combineShiftRightLogical() local
47903 if (!ShiftC || !AndC) in combineShiftRightLogical()
47918 APInt NewMaskVal = MaskVal.lshr(ShiftC->getAPIntValue()); in combineShiftRightLogical()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1563 if (ConstantSDNode *ShiftC = in SimplifyDemandedBits() local
1567 if (ShiftC->getAPIntValue().ult(BitWidth)) { in SimplifyDemandedBits()
1568 uint64_t ShiftAmt = ShiftC->getZExtValue(); in SimplifyDemandedBits()
H A DDAGCombiner.cpp9662 SDValue ShiftC = in visitSRA() local
9668 Add = DAG.getNode(ISD::ADD, DL, TruncVT, Trunc, ShiftC); in visitSRA()
9670 Add = DAG.getNode(ISD::SUB, DL, TruncVT, ShiftC, Trunc); in visitSRA()
13474 SDValue ShiftC = DAG.getConstant(ShAmt, DL, VT); in reduceLoadWidth() local
13475 Result = DAG.getNode(ISD::SHL, DL, VT, Result, ShiftC); in reduceLoadWidth()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp13696 auto *ShiftC = dyn_cast<ConstantSDNode>(N->getOperand(0).getOperand(1)); in isDesirableToCommuteXorWithShift() local
13697 if (XorC && ShiftC) { in isDesirableToCommuteXorWithShift()
13700 unsigned ShiftAmt = ShiftC->getZExtValue(); in isDesirableToCommuteXorWithShift()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp14969 auto *ShiftC = dyn_cast<ConstantSDNode>(N->getOperand(0).getOperand(1)); in isDesirableToCommuteXorWithShift() local
14970 if (XorC && ShiftC) { in isDesirableToCommuteXorWithShift()
14973 unsigned ShiftAmt = ShiftC->getZExtValue(); in isDesirableToCommuteXorWithShift()