Lines Matching refs:InnerShift
520 Instruction *InnerShift, in canEvaluateShiftedShift() argument
522 assert(InnerShift->isLogicalShift() && "Unexpected instruction type"); in canEvaluateShiftedShift()
526 if (!match(InnerShift->getOperand(1), m_APInt(InnerShiftConst))) in canEvaluateShiftedShift()
532 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift()
548 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift()
554 if (IC.MaskedValueIsZero(InnerShift->getOperand(0), Mask, 0, CxtI)) in canEvaluateShiftedShift()
625 static Value *foldShiftedShift(BinaryOperator *InnerShift, unsigned OuterShAmt, in foldShiftedShift() argument
628 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in foldShiftedShift()
629 Type *ShType = InnerShift->getType(); in foldShiftedShift()
634 match(InnerShift->getOperand(1), m_APInt(C1)); in foldShiftedShift()
639 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
641 InnerShift->setHasNoUnsignedWrap(false); in foldShiftedShift()
642 InnerShift->setHasNoSignedWrap(false); in foldShiftedShift()
644 InnerShift->setIsExact(false); in foldShiftedShift()
646 return InnerShift; in foldShiftedShift()
667 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift()
670 AndI->moveBefore(InnerShift); in foldShiftedShift()
671 AndI->takeName(InnerShift); in foldShiftedShift()