Lines Matching defs:I2

1425                                 Instruction *I1, Instruction *I2) {
1430 if (BB1V != BB2V && (BB1V == I1 || BB2V == I2)) {
1499 /// instructions \p I1 and \p I2 can and should be hoisted.
1500 static bool shouldHoistCommonInstructions(Instruction *I1, Instruction *I2,
1509 auto *C2 = dyn_cast<CallInst>(I2);
1514 if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2))
1522 if (const auto *CB2 = dyn_cast<CallBase>(I2))
1533 /// OtherInsts: { I2 DVRs: { x, y, z } }
1661 Instruction *I2 = &*Iter;
1662 return I1->isIdenticalToWhenDefined(I2);
1668 Instruction *I2 = &*SuccIter;
1669 while (isa<DbgInfoIntrinsic>(I2))
1670 I2 = &*++SuccIter;
1677 Instruction *I2 = &*SuccIter;
1678 HasTerminator |= I2->isTerminator();
1679 if (AllInstsAreIdentical && (!I1->isIdenticalToWhenDefined(I2) ||
1680 MMRAMetadata(*I1) != MMRAMetadata(*I2)))
1708 Instruction *I2 = &*Pair.first;
1714 return isSafeToHoistInstr(I2, SkipFlagsBB2) &&
1715 shouldHoistCommonInstructions(I1, I2, TTI);
1731 auto *I2 = &*SuccIter++;
1732 assert(isa<DbgInfoIntrinsic>(I2));
1733 I2->moveBefore(TI);
1745 Instruction *I2 = &*SuccIter++;
1746 assert(I2 != I1);
1747 if (!I2->use_empty())
1748 I2->replaceAllUsesWith(I1);
1749 I1->andIRFlags(I2);
1750 combineMetadataForCSE(I1, I2, true);
1751 // I1 and I2 are being combined into a single instruction. Its debug
1753 I1->applyMergedLocation(I1->getDebugLoc(), I2->getDebugLoc());
1754 I2->eraseFromParent();
1789 auto *I2 = *OtherSuccTIs.begin();
1790 auto *BB2 = I2->getParent();
1794 assert(BI->getSuccessor(1) == I2->getParent());
1801 if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2)))