Lines Matching defs:I2

983                                 Instruction *I1, Instruction *I2) {
990 if (BB1V != BB2V && (BB1V==I1 || BB2V==I2)) {
1013 Instruction *I1 = BB1_Itr++, *I2 = BB2_Itr++;
1016 DbgInfoIntrinsic *DBI2 = dyn_cast<DbgInfoIntrinsic>(I2);
1020 while (isa<DbgInfoIntrinsic>(I2))
1021 I2 = BB2_Itr++;
1023 if (isa<PHINode>(I1) || !I1->isIdenticalToWhenDefined(I2) ||
1024 (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2)))
1040 if (!I2->use_empty())
1041 I2->replaceAllUsesWith(I1);
1042 I1->intersectOptionalDataWith(I2);
1043 I2->eraseFromParent();
1047 I2 = BB2_Itr++;
1050 DbgInfoIntrinsic *DBI2 = dyn_cast<DbgInfoIntrinsic>(I2);
1054 while (isa<DbgInfoIntrinsic>(I2))
1055 I2 = BB2_Itr++;
1057 } while (I1->isIdenticalToWhenDefined(I2));
1063 if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2))
1087 I2->replaceAllUsesWith(NT);
1196 Instruction *I1 = &*RI1, *I2 = &*RI2;
1197 // I1 and I2 should have a single use in the same PHI node, and they
1200 if (isa<PHINode>(I1) || isa<PHINode>(I2) ||
1201 isa<TerminatorInst>(I1) || isa<TerminatorInst>(I2) ||
1202 isa<LandingPadInst>(I1) || isa<LandingPadInst>(I2) ||
1203 isa<AllocaInst>(I1) || isa<AllocaInst>(I2) ||
1204 I1->mayHaveSideEffects() || I2->mayHaveSideEffects() ||
1205 I1->mayReadOrWriteMemory() || I2->mayReadOrWriteMemory() ||
1206 !I1->hasOneUse() || !I2->hasOneUse() ||
1208 MapValueFromBB1ToBB2[I1].first != I2)
1212 ICmpInst *ICmp1 = dyn_cast<ICmpInst>(I1), *ICmp2 = dyn_cast<ICmpInst>(I2);
1222 if (!I1->isSameOperationAs(I2)) {
1234 if (I1->getOperand(I) == I2->getOperand(I))
1243 isa<Constant>(I2->getOperand(I))) {
1251 DifferentOp2 = I2->getOperand(I);
1255 // remove (I1, I2) from MapValueFromBB1ToBB2.
1271 DEBUG(dbgs() << " " << *I2 << "\n";);
1274 bool UpdateRE1 = (I1 == BB1->begin()), UpdateRE2 = (I2 == BB2->begin());
1281 if (!I2->use_empty())
1282 I2->replaceAllUsesWith(I1);
1283 I1->intersectOptionalDataWith(I2);
1284 I2->eraseFromParent();