Lines Matching refs:BaseInst

356       Instruction *BaseInst;  member
856 if (hasUsesOutsideLoop(DRS.BaseInst, L)) in validateRootSet()
868 const auto *ADR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(DRS.BaseInst)); in validateRootSet()
910 DRS.BaseInst = nullptr; in findRootsBase()
915 if (!DRS.BaseInst) { in findRootsBase()
916 DRS.BaseInst = KV.second; in findRootsBase()
929 DRS.BaseInst = KV.second; in findRootsBase()
1000 Exclude.insert(DRS.BaseInst); in collectUsedInstructions()
1006 collectInLoopUserSet(DRS.BaseInst, Exclude, PossibleRedSet, VBase); in collectUsedInstructions()
1040 Exclude.insert(DRS.BaseInst); in collectUsedInstructions()
1074 if (DRS.BaseInst == I) in isBaseInst()
1211 Instruction *BaseInst = BaseIt->first; in validate() local
1216 if (isBaseInst(BaseInst)) { in validate()
1217 Visited.insert(BaseInst); in validate()
1229 if (!BaseInst->isSameOperationAs(RootInst)) { in validate()
1243 !BaseInst->isSameOperationAs(TryIt->first) && in validate()
1252 << *BaseInst << " vs. " << *RootInst << "\n"); in validate()
1288 LLVM_DEBUG(dbgs() << "LRR: iteration root match failed at " << *BaseInst in validate()
1300 << *BaseInst << " vs. " << *RootInst in validate()
1311 if (FutureSideEffects && ((!isUnorderedLoadStore(BaseInst) && in validate()
1312 !isSafeToSpeculativelyExecute(BaseInst)) || in validate()
1315 LLVM_DEBUG(dbgs() << "LRR: iteration root match failed at " << *BaseInst in validate()
1331 bool InReduction = Reductions.isPairInSame(BaseInst, RootInst); in validate()
1333 if (!(InReduction && BaseInst->isAssociative())) { in validate()
1335 for (unsigned j = 0; j < BaseInst->getNumOperands(); ++j) { in validate()
1352 Op2 = DRS.BaseInst; in validate()
1358 if (BaseInst->getOperand(Swapped ? unsigned(!j) : j) != Op2) { in validate()
1364 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
1365 BaseInst->getOperand(!j) == Op2) { in validate()
1369 << "LRR: iteration root match failed at " << *BaseInst in validate()
1379 if ((!PossibleRedLastSet.count(BaseInst) && in validate()
1380 hasUsesOutsideLoop(BaseInst, L)) || in validate()
1383 LLVM_DEBUG(dbgs() << "LRR: iteration root match failed at " << *BaseInst in validate()
1388 Reductions.recordPair(BaseInst, RootInst, Iter); in validate()
1389 BaseMap.insert(std::make_pair(RootInst, BaseInst)); in validate()
1392 Visited.insert(BaseInst); in validate()
1416 cast<SCEVAddRecExpr>(SE->getSCEV(DRS.BaseInst)); in replace()
1469 Instruction *Inst = DRS.BaseInst; in replaceIV()