Lines Matching refs:InnerShift
475 Instruction *InnerShift, in canEvaluateShiftedShift() argument
477 assert(InnerShift->isLogicalShift() && "Unexpected instruction type"); in canEvaluateShiftedShift()
481 if (!match(InnerShift->getOperand(1), m_APInt(InnerShiftConst))) in canEvaluateShiftedShift()
487 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift()
503 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift()
509 if (IC.MaskedValueIsZero(InnerShift->getOperand(0), Mask, 0, CxtI)) in canEvaluateShiftedShift()
581 static Value *foldShiftedShift(BinaryOperator *InnerShift, unsigned OuterShAmt, in foldShiftedShift() argument
584 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in foldShiftedShift()
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()
627 AndI->takeName(InnerShift); in foldShiftedShift()