Home | History | Annotate | Download | only in Scalar

Lines Matching refs:J1

256       bool isPairInSame(Instruction *J1, Instruction *J2) {
257 DenseMap<Instruction *, int>::iterator J1I = PossibleRedIdx.find(J1);
270 void recordPair(Instruction *J1, Instruction *J2, unsigned i) {
271 if (PossibleRedIdx.count(J1)) {
275 PossibleRedIter[J1] = 0;
278 int Idx = PossibleRedIdx[J1];
856 for (BasicBlock::iterator J1 = Header->begin(), J2 = Header->begin(),
857 JE = Header->end(); J1 != JE && !MatchFailed; ++J1) {
858 if (cast<Instruction>(J1) == RealIV)
860 if (cast<Instruction>(J1) == IV)
862 if (!BaseUseSet.count(J1))
864 if (PossibleRedPHISet.count(J1)) // Skip reduction PHIs.
890 if (!J1->isSameOperationAs(J2)) {
891 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
901 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
914 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
927 ((!isSimpleLoadStore(J1) &&
928 !isSafeToSpeculativelyExecute(J1, DL)) ||
931 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
948 bool InReduction = Reductions.isPairInSame(J1, J2);
950 if (!(InReduction && J1->isAssociative())) {
952 for (unsigned j = 0; j < J1->getNumOperands() && !MatchFailed; ++j) {
970 if (J1->getOperand(Swapped ? unsigned(!j) : j) != Op2) {
976 if (!Swapped && J1->isCommutative() && !SomeOpMatched &&
977 J1->getOperand(!j) == Op2) {
980 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
991 if ((!PossibleRedLastSet.count(J1) && hasUsesOutsideLoop(J1, L)) ||
993 DEBUG(dbgs() << "LRR: iteration root match failed at " << *J1 <<
1000 BaseMap.insert(std::pair<Value *, Value *>(J2, J1));
1003 Reductions.recordPair(J1, J2, i+1);