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