Lines Matching defs:ShOpc
903 unsigned ShOpc) {
904 assert(ShOpc != Instruction::AShr);
906 ShOpc == Instruction::Shl;
909 auto GetInvShift = [](unsigned ShOpc) {
910 assert(ShOpc != Instruction::AShr);
911 return ShOpc == Instruction::LShr ? Instruction::Shl : Instruction::LShr;
915 unsigned ShOpc, Constant *CMask,
923 if (!IsCompletelyDistributable(BinOpc1, BinOpc2, ShOpc))
935 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL);
936 return ConstantFoldBinaryOpOperands(ShOpc, MaskInvShift, CShift, DL) ==
959 unsigned ShOpc = IY->getOpcode();
960 if (ShOpc != IX->getOpcode())
973 if (ShOpc == Instruction::AShr) {
979 static_cast<Instruction::BinaryOps>(ShOpc), NewBinOp, Shift);
988 IsCompletelyDistributable(I.getOpcode(), BinOpc, ShOpc)) {
991 static_cast<Instruction::BinaryOps>(ShOpc), NewBinOp2, Shift);
1003 if (!CanDistributeBinops(I.getOpcode(), BinOpc, ShOpc, CMask, CShift))
1007 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL);
1011 return BinaryOperator::Create(static_cast<Instruction::BinaryOps>(ShOpc),