Lines Matching full:shiftop
542 BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0);
543 if (ShiftOp && !ShiftOp->isShift())
544 ShiftOp = nullptr;
546 if (ShiftOp && isa<ConstantInt>(ShiftOp->getOperand(1))) {
560 ConstantInt *ShiftAmt1C = cast<ConstantInt>(ShiftOp->getOperand(1));
565 Value *X = ShiftOp->getOperand(0);
570 if (I.getOpcode() == ShiftOp->getOpcode()) {
587 ShiftOp->getOpcode() == Instruction::Shl) {
599 ShiftOp->getOpcode() != Instruction::Shl &&
600 ShiftOp->isExact()) {
601 assert(ShiftOp->getOpcode() == Instruction::LShr ||
602 ShiftOp->getOpcode() == Instruction::AShr);
613 ShiftOp->getOpcode() == Instruction::Shl) {
616 if (ShiftOp->hasNoUnsignedWrap()) {
632 ShiftOp->getOpcode() == Instruction::Shl) {
633 if (ShiftOp->hasNoSignedWrap()) {
650 ShiftOp->getOpcode() != Instruction::Shl &&
651 ShiftOp->isExact()) {
653 BinaryOperator *NewShr = BinaryOperator::Create(ShiftOp->getOpcode(),
661 ShiftOp->getOpcode() == Instruction::Shl) {
663 if (ShiftOp->hasNoUnsignedWrap()) {
680 ShiftOp->getOpcode() == Instruction::Shl) {
681 if (ShiftOp->hasNoSignedWrap()) {