Home
last modified time | relevance | path

Searched refs:InnerShift (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp475 Instruction *InnerShift, in canEvaluateShiftedShift() argument
585 Type *ShType = InnerShift->getType(); in foldShiftedShift()
590 match(InnerShift->getOperand(1), m_APInt(C1)); in foldShiftedShift()
595 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
597 InnerShift->setHasNoUnsignedWrap(false); in foldShiftedShift()
598 InnerShift->setHasNoSignedWrap(false); in foldShiftedShift()
600 InnerShift->setIsExact(false); in foldShiftedShift()
602 return InnerShift; in foldShiftedShift()
623 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift()
626 AndI->moveBefore(InnerShift); in foldShiftedShift()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp5949 unsigned InnerShift; // The opposite direction to the OuterShift. in unfoldExtremeBitClearingToShifts() local
5951 auto matchMask = [&OuterShift, &InnerShift, &Y](SDValue M) -> bool { in unfoldExtremeBitClearingToShifts()
5956 InnerShift = ISD::SRL; in unfoldExtremeBitClearingToShifts()
5958 InnerShift = ISD::SHL; in unfoldExtremeBitClearingToShifts()
5979 SDValue T0 = DAG.getNode(InnerShift, DL, VT, X, Y); in unfoldExtremeBitClearingToShifts()
9499 SDValue InnerShift = N0.getOperand(0); in visitSRL() local
9501 if (auto *N001C = isConstOrConstSplat(InnerShift.getOperand(1))) { in visitSRL()
9504 EVT InnerShiftVT = InnerShift.getValueType(); in visitSRL()
9505 EVT ShiftAmtVT = InnerShift.getOperand(1).getValueType(); in visitSRL()
9515 InnerShift.getOperand(0), NewShiftAmt); in visitSRL()
[all …]