Lines Matching refs:I2
843 auto *I2 = dyn_cast<Instruction>(V2);
844 if (I1 && I2) {
845 if (I1 == I2)
847 InstructionsState S = getSameOpcode({I1, I2});
946 auto *I2 = dyn_cast<Instruction>(V2);
947 if (CurrLevel == MaxLevel || !(I1 && I2) || I1 == I2 ||
949 (isa<LoadInst>(I1) && isa<LoadInst>(I2) && ShallowScoreAtThisLevel))
951 assert(I1 && I2 && "Should have early exited.");
957 // Contains the I2 operand indexes that got matched with I1 operands.
960 // Recursion towards the operands of I1 and I2. We are trying all possbile
964 // Try to pair op1I with the best operand of I2.
968 // If I2 is commutative try all combinations.
969 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1;
970 unsigned ToIdx = isCommutative(I2)
971 ? I2->getNumOperands()
972 : std::min(I2->getNumOperands(), OpIdx1 + 1);
980 {I2->getOperand(OpIdx2), Lane2},