Lines Matching defs:MainOp

815   /// The main/alternate instruction. MainOp is also VL0.
816 Instruction *MainOp = nullptr;
822 return MainOp;
843 /// Checks if the current state is valid, i.e. has non-null MainOp
844 bool valid() const { return MainOp && AltOp; }
849 InstructionsState(Instruction *MainOp, Instruction *AltOp)
850 : MainOp(MainOp), AltOp(AltOp) {}
919 Instruction *MainOp = cast<Instruction>(*It);
921 if ((VL.size() > 2 && !isa<PHINode>(MainOp) && InstCnt < VL.size() / 2) ||
925 bool IsCastOp = isa<CastInst>(MainOp);
926 bool IsBinOp = isa<BinaryOperator>(MainOp);
927 bool IsCmpOp = isa<CmpInst>(MainOp);
928 CmpInst::Predicate BasePred = IsCmpOp ? cast<CmpInst>(MainOp)->getPredicate()
930 Instruction *AltOp = MainOp;
931 unsigned Opcode = MainOp->getOpcode();
959 if (auto *CallBase = dyn_cast<CallInst>(MainOp)) {
966 // Check MainOp too to be sure that it matches the requirements for the
989 Value *Op0 = MainOp->getOperand(0);
1006 auto *BaseInst = cast<CmpInst>(MainOp);
1027 if (MainOp != AltOp) {
1048 Gep->getOperand(0)->getType() != MainOp->getOperand(0)->getType())
1054 auto *BaseLI = cast<LoadInst>(MainOp);
1058 auto *CallBase = cast<CallInst>(MainOp);
1088 return InstructionsState(MainOp, AltOp);
2445 Instruction *MainOp = S.getMainOp();
2446 unsigned NumOperands = MainOp->getNumOperands();
2447 ArgSize = isa<IntrinsicInst>(MainOp) ? IntrinsicNumOperands : NumOperands;
2466 if (auto *EI = dyn_cast<ExtractElementInst>(MainOp)) {
2471 } else if (auto *EV = dyn_cast<ExtractValueInst>(MainOp)) {
2478 PoisonValue::get(MainOp->getOperand(OpIdx)->getType()), true,
3353 /// MainOp and AltOp are recorded inside. S should be obtained from
3540 dbgs() << "MainOp: " << *S.getMainOp() << "\n";
3543 dbgs() << "MainOp: NULL\n";
7518 /// the given \p MainOp and \p AltOp instructions.
7520 const Instruction *MainOp,
9084 const Instruction *MainOp,
9087 if (auto *MainCI = dyn_cast<CmpInst>(MainOp)) {