Lines Matching refs:I2
1220 Instruction *I1, Instruction *I2) {
1225 if (BB1V != BB2V && (BB1V == I1 || BB2V == I2)) {
1251 Instruction *I1 = &*BB1_Itr++, *I2 = &*BB2_Itr++;
1254 DbgInfoIntrinsic *DBI2 = dyn_cast<DbgInfoIntrinsic>(I2);
1258 while (isa<DbgInfoIntrinsic>(I2))
1259 I2 = &*BB2_Itr++;
1262 if (isa<PHINode>(I1) || !I1->isIdenticalToWhenDefined(I2) ||
1263 (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2)) ||
1282 auto *C2 = dyn_cast<CallInst>(I2);
1287 if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2))
1290 if (isa<DbgInfoIntrinsic>(I1) || isa<DbgInfoIntrinsic>(I2)) {
1291 assert (isa<DbgInfoIntrinsic>(I1) && isa<DbgInfoIntrinsic>(I2));
1298 BB2->getInstList(), I2);
1306 if (!I2->use_empty())
1307 I2->replaceAllUsesWith(I1);
1308 I1->andIRFlags(I2);
1321 combineMetadata(I1, I2, KnownIDs, true);
1323 // I1 and I2 are being combined into a single instruction. Its debug
1325 I1->applyMergedLocation(I1->getDebugLoc(), I2->getDebugLoc());
1327 I2->eraseFromParent();
1332 I2 = &*BB2_Itr++;
1335 DbgInfoIntrinsic *DBI2 = dyn_cast<DbgInfoIntrinsic>(I2);
1339 while (isa<DbgInfoIntrinsic>(I2))
1340 I2 = &*BB2_Itr++;
1342 } while (I1->isIdenticalToWhenDefined(I2));
1349 if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2))
1381 I2->replaceAllUsesWith(NT);
1387 NT->applyMergedLocation(I1->getDebugLoc(), I2->getDebugLoc());