Lines Matching refs:I1

984                                 Instruction *I1, Instruction *I2) {  in isSafeToHoistInvoke()  argument
991 if (BB1V != BB2V && (BB1V==I1 || BB2V==I2)) { in isSafeToHoistInvoke()
1014 Instruction *I1 = BB1_Itr++, *I2 = BB2_Itr++; in HoistThenElseCodeToIf() local
1016 DbgInfoIntrinsic *DBI1 = dyn_cast<DbgInfoIntrinsic>(I1); in HoistThenElseCodeToIf()
1019 while (isa<DbgInfoIntrinsic>(I1)) in HoistThenElseCodeToIf()
1020 I1 = BB1_Itr++; in HoistThenElseCodeToIf()
1024 if (isa<PHINode>(I1) || !I1->isIdenticalToWhenDefined(I2) || in HoistThenElseCodeToIf()
1025 (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2))) in HoistThenElseCodeToIf()
1034 if (isa<TerminatorInst>(I1)) in HoistThenElseCodeToIf()
1040 BIParent->getInstList().splice(BI, BB1->getInstList(), I1); in HoistThenElseCodeToIf()
1042 I2->replaceAllUsesWith(I1); in HoistThenElseCodeToIf()
1043 I1->intersectOptionalDataWith(I2); in HoistThenElseCodeToIf()
1047 I1 = BB1_Itr++; in HoistThenElseCodeToIf()
1050 DbgInfoIntrinsic *DBI1 = dyn_cast<DbgInfoIntrinsic>(I1); in HoistThenElseCodeToIf()
1053 while (isa<DbgInfoIntrinsic>(I1)) in HoistThenElseCodeToIf()
1054 I1 = BB1_Itr++; in HoistThenElseCodeToIf()
1058 } while (I1->isIdenticalToWhenDefined(I2)); in HoistThenElseCodeToIf()
1064 if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2)) in HoistThenElseCodeToIf()
1084 Instruction *NT = I1->clone(); in HoistThenElseCodeToIf()
1087 I1->replaceAllUsesWith(NT); in HoistThenElseCodeToIf()
1089 NT->takeName(I1); in HoistThenElseCodeToIf()
1197 Instruction *I1 = &*RI1, *I2 = &*RI2; in SinkThenElseCodeToEnd() local
1201 if (isa<PHINode>(I1) || isa<PHINode>(I2) || in SinkThenElseCodeToEnd()
1202 isa<TerminatorInst>(I1) || isa<TerminatorInst>(I2) || in SinkThenElseCodeToEnd()
1203 isa<LandingPadInst>(I1) || isa<LandingPadInst>(I2) || in SinkThenElseCodeToEnd()
1204 isa<AllocaInst>(I1) || isa<AllocaInst>(I2) || in SinkThenElseCodeToEnd()
1205 I1->mayHaveSideEffects() || I2->mayHaveSideEffects() || in SinkThenElseCodeToEnd()
1206 I1->mayReadOrWriteMemory() || I2->mayReadOrWriteMemory() || in SinkThenElseCodeToEnd()
1207 !I1->hasOneUse() || !I2->hasOneUse() || in SinkThenElseCodeToEnd()
1208 MapValueFromBB1ToBB2.find(I1) == MapValueFromBB1ToBB2.end() || in SinkThenElseCodeToEnd()
1209 MapValueFromBB1ToBB2[I1].first != I2) in SinkThenElseCodeToEnd()
1213 ICmpInst *ICmp1 = dyn_cast<ICmpInst>(I1), *ICmp2 = dyn_cast<ICmpInst>(I2); in SinkThenElseCodeToEnd()
1223 if (!I1->isSameOperationAs(I2)) { in SinkThenElseCodeToEnd()
1234 for (unsigned I = 0, E = I1->getNumOperands(); I != E; ++I) { in SinkThenElseCodeToEnd()
1235 if (I1->getOperand(I) == I2->getOperand(I)) in SinkThenElseCodeToEnd()
1241 MapValueFromBB1ToBB2.find(I1->getOperand(I)) != in SinkThenElseCodeToEnd()
1243 isa<Constant>(I1->getOperand(I)) || in SinkThenElseCodeToEnd()
1250 DifferentOp1 = I1->getOperand(I); in SinkThenElseCodeToEnd()
1263 I1->setOperand(Op1Idx, NewPN); in SinkThenElseCodeToEnd()
1268 PHINode *OldPN = MapValueFromBB1ToBB2[I1].second; in SinkThenElseCodeToEnd()
1269 MapValueFromBB1ToBB2.erase(I1); in SinkThenElseCodeToEnd()
1271 DEBUG(dbgs() << "SINK common instructions " << *I1 << "\n";); in SinkThenElseCodeToEnd()
1275 bool UpdateRE1 = (I1 == BB1->begin()), UpdateRE2 = (I2 == BB2->begin()); in SinkThenElseCodeToEnd()
1277 BBEnd->getInstList().splice(FirstNonPhiInBBEnd, BB1->getInstList(), I1); in SinkThenElseCodeToEnd()
1279 OldPN->replaceAllUsesWith(I1); in SinkThenElseCodeToEnd()
1283 I2->replaceAllUsesWith(I1); in SinkThenElseCodeToEnd()
1284 I1->intersectOptionalDataWith(I2); in SinkThenElseCodeToEnd()
1291 FirstNonPhiInBBEnd = I1; in SinkThenElseCodeToEnd()