Lines Matching refs:ShiftOp
535 BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0); in FoldShiftByConstant() local
536 if (ShiftOp && !ShiftOp->isShift()) in FoldShiftByConstant()
537 ShiftOp = nullptr; in FoldShiftByConstant()
539 if (ShiftOp && isa<ConstantInt>(ShiftOp->getOperand(1))) { in FoldShiftByConstant()
553 ConstantInt *ShiftAmt1C = cast<ConstantInt>(ShiftOp->getOperand(1)); in FoldShiftByConstant()
558 Value *X = ShiftOp->getOperand(0); in FoldShiftByConstant()
563 if (I.getOpcode() == ShiftOp->getOpcode()) { in FoldShiftByConstant()
580 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
592 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
593 ShiftOp->isExact()) { in FoldShiftByConstant()
594 assert(ShiftOp->getOpcode() == Instruction::LShr || in FoldShiftByConstant()
595 ShiftOp->getOpcode() == Instruction::AShr); in FoldShiftByConstant()
606 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
609 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
625 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
626 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant()
643 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
644 ShiftOp->isExact()) { in FoldShiftByConstant()
646 BinaryOperator *NewShr = BinaryOperator::Create(ShiftOp->getOpcode(), in FoldShiftByConstant()
654 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
656 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
673 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
674 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant()